From: Oleg Broytman Date: Fri, 16 Sep 2016 20:36:15 +0000 (+0300) Subject: .shellrc: remove clo aliases - clear is called in .logout X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b7e4af77848d9d86adfbeace33c422279b304ea4;p=dotfiles.git .shellrc: remove clo aliases - clear is called in .logout --- 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