From 9eba64edd6ced4a630b612ed4ff28c83a1e29d43 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 2 Oct 2018 09:55:09 +0200 Subject: [zsh] Add [vifm] in prompt when appropriate --- zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zsh/.zshrc') 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 -- cgit v1.2.3