X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=6e2fa0532e4fd55ade495f8137b556b25e1dc78a;hp=0897f252d8e02faa2b78fcca2f3a6dd9cc9c33ab;hb=201cec894446caedb826806dce9d6234c0705e64;hpb=50b7018946e9fb8818fc98ca65ce5664d3e28e03 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