From b7e4af77848d9d86adfbeace33c422279b304ea4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 16 Sep 2016 23:36:15 +0300 Subject: [PATCH] .shellrc: remove clo aliases - clear is called in .logout --- .shellrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 -- 2.39.5