summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-10-02 09:55:09 +0200
committerUrbain Vaes <urbain@vaes.uk>2018-10-02 09:55:09 +0200
commit9eba64edd6ced4a630b612ed4ff28c83a1e29d43 (patch)
tree79f199d1fac521b03537ac619b128ca79007524a /zsh/.zshrc
parent17418bda2425baa6fd03dca3dda26915ccf9b863 (diff)
[zsh] Add [vifm] in prompt when appropriate
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9b06a94..96a86d3 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -50,6 +50,10 @@ PROMPT='%F{red}[%M]%f %0~ $ '
else
PROMPT='%0~ $ '
fi
+
+if [[ -n $VIFM ]]; then
+PROMPT="%F{green}[VIFM]%f $PROMPT"
+fi
# }}}
## Plugins {{{
[ ! -d ~/.zsh/zgen ] && git clone https://github.com/tarjoilija/zgen.git ~/.zsh/zgen