From d33af58cb06e695ecfdd394b870bfa1214bdbb86 Mon Sep 17 00:00:00 2001 From: maudin Date: Tue, 5 Mar 2019 15:41:01 +0100 Subject: [PATCH] message if local history file --- hybris.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hybris.zsh b/hybris.zsh index 9667ce9..defa80c 100644 --- a/hybris.zsh +++ b/hybris.zsh @@ -1,5 +1,10 @@ # bip at command end -function precmd() {echo -n -e "\a"} +function precmd() { + echo -n -e "\a" + if [ $_per_directory_history_is_global = false ]; then + echo "\e[31mUsing local history\e[39m" + fi +} # do not share history between terms... unsetopt share_history