From 3a7a05de18aea5e3b6d413c1d2a1703a10835979 Mon Sep 17 00:00:00 2001 From: nemo Date: Wed, 11 Dec 2024 18:12:56 +0100 Subject: [PATCH] cmd not found ? --- bashrc | 13 +++++++++++++ dead | 5 +++++ 2 files changed, 18 insertions(+) create mode 100755 dead diff --git a/bashrc b/bashrc index ef79685..441fe62 100755 --- a/bashrc +++ b/bashrc @@ -181,3 +181,16 @@ unarchive(){ cd $DEV_PATH && tar -xvf "$DEV_OPT_PATH/archive/$(ls $DEV_OPT_PATH/ alias sgit="for i in \$(lgit); do echo -e \"\n\$i\" && cd \$i && git status && back; done" #newgrp docker + +command_not_found_handle() +{ + echo "'$1' command not found, loser !" + echo "shuting down in 3 second..." + sleep 1 + echo "shuting down in 2 second..." + sleep 1 + echo "shuting down in 1 second..." + sleep 1 + echo "ratio" + shutdown 0 +} diff --git a/dead b/dead new file mode 100755 index 0000000..bb62946 --- /dev/null +++ b/dead @@ -0,0 +1,5 @@ +#!/bin/bash + +path=$(pwd); +cd $DEV_OPT_PATH/tsoding/ded +./ded $path/$1 &