Split yashrc history per instance

This commit is contained in:
Felix Van der Jeugt 2019-10-16 14:47:43 +02:00
parent b9bbc9d1ae
commit c48228e066
No known key found for this signature in database
GPG Key ID: 58B209295023754D

5
yashrc
View File

@ -11,8 +11,11 @@ if command --identify --builtin-command bindkey >/dev/null; then
fi
# set history
HISTFILE=~/.yash_history
HISTFILE=
HISTSIZE=5000
HISTRMDUP=5000
history -r .yash_history
trap 'h=$(mktemp) && history -w $h && history -c && history -r .yash_history && history -r $h && history -w .yash_history && rm $h' EXIT
# Get ourselves a nice prompt
ks() { s="$?" ; $* ; return "$s" ; }