1
0
Fork 0

own per directory history

This commit is contained in:
Maurice Audin 2019-03-07 14:40:12 +01:00
parent d33af58cb0
commit 3ddfec2a5a
2 changed files with 1 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# bip at command end
function precmd() {
echo -n -e "\a"
if [ $_per_directory_history_is_global = false ]; then
if [ "$HISTFILE" != "/home/hybris/.zsh_history" ]; then
echo "\e[31mUsing local history\e[39m"
fi
}

1
zshrc
View file

@ -14,7 +14,6 @@ if ! zgen saved; then
zgen oh-my-zsh plugins/rsync
zgen oh-my-zsh plugins/systemadmin
zgen oh-my-zsh plugins/z
zgen load robbyrussell/oh-my-zsh plugins/per-directory-history/per-directory-history.zsh
# personnal configuration
zgen load hybris42/zsh hybris.zsh