]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: uncomment and refactor function chlo
authorOleg Broytman <phd@phdru.name>
Fri, 16 Sep 2016 20:49:01 +0000 (23:49 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 16 Sep 2016 20:49:01 +0000 (23:49 +0300)
.shellrc

index 0897f252d8e02faa2b78fcca2f3a6dd9cc9c33ab..6e2fa0532e4fd55ade495f8137b556b25e1dc78a 100644 (file)
--- 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