X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=a11597f3a8c24ba0bec7cdce8b132f1ec8b2d4b2;hb=b7e4af77848d9d86adfbeace33c422279b304ea4;hp=aa12a31e36478fe7308f53f0c4db3f63626d928b;hpb=91221fc097f8d11e2afd43f1a5f175034a327899;p=dotfiles.git diff --git a/.shellrc b/.shellrc index aa12a31..a11597f 100644 --- a/.shellrc +++ b/.shellrc @@ -68,7 +68,6 @@ if test -n "$BASH_VERSION"; then [ "`type -t mc`" = alias ] && unalias mc back() { cd - "$@"; } - clo() { clear; logout; } functions() { typeset -f "$@"; } j() { jobs; } @@ -156,16 +155,11 @@ if test -n "$BASH_VERSION"; then elif test -n "$KSH_VERSION" -o -n "$FCEDIT"; then back() { cd - "$@"; } - clo() { clear; exit; } j() { jobs; } - -else - clo() { clear; exit; } fi # clear history, clear screen and logout -#chlo() { cd; unset HISTFILE; rm -f .sh_history; history -c; clo; } #Pwd() { pwd | sed "s/.*\/\(.*\)\/\(.*\)\/\(.*\)\/\(.*\)/...\/\2\/\3\/\4/"; } @@ -190,6 +184,7 @@ KillAll() { kill "$1" `pidOf "$2"` fi } +#chlo() { cd; unset HISTFILE; rm -f .sh_history; history -c; clear; logout || exit; } if test -x /usr/bin/git >/dev/null 2>&1; then