commit 279e6bfee3a3f08b3f444b3d423a142ec78cf629
parent ef0f1f0487f367f02d93a400c62d804059c51c36
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 28 Aug 2019 10:44:37 +0200
Update fffs and nnn, fix return status from zsh rprompt
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -152,7 +152,7 @@ precmd() {
_fix_cursor() {
echo -ne '\e[5 q'
- }
+}
precmd_functions+=(_fix_cursor)
@@ -194,8 +194,8 @@ rprompt() {
echo -n "${EXECTIME} " # runtime of prev cmd
echo -n "%{$fg[cyan]%}$(git_branch)%{$reset_color%}" # git branch
echo -n "%~ " # pwd
- [ "$USER" != "ad" ] && echo -n "%n@" #username
- [ "$HOST" != "idkfa" ] && echo -n "%m" #hostname
+ [ "$USER" != "ad" ] && echo -n "%n@" || :
+ [ "$HOST" != "idkfa" ] && echo -n "%m" || :
}
PROMPT="$(prompt_with_vimode $insert_mode)"