From 201cec894446caedb826806dce9d6234c0705e64 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 16 Sep 2016 23:49:01 +0300 Subject: [PATCH] .shellrc: uncomment and refactor function chlo --- .shellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.shellrc b/.shellrc index 0897f25..6e2fa05 100644 --- a/.shellrc +++ b/.shellrc @@ -159,8 +159,8 @@ elif test -n "$KSH_VERSION" -o -n "$FCEDIT"; then fi -# clear history, clear screen and logout -#chlo() { cd; unset HISTFILE; rm -f .sh_history; history -c; clear; logout || exit; } +# clear screen and history, logout +chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; } if test -x /usr/bin/git >/dev/null 2>&1; then -- 2.39.2