Add ranger hint to zsh prompt

This commit is contained in:
Talia 2022-11-23 10:59:33 +01:00
parent 296c9ce35a
commit 4eccff5f8f

2
zshrc
View file

@ -18,7 +18,7 @@ setopt hist_ignore_space
bindkey -v
prompt='%(?.%F{green}.%F{red})λ%f '
prompt='%F{blue}$(if [ "$RANGER_LEVEL" -gt 0 ]; then echo -ne "R."; fi)%(?.%F{green}.%F{red})λ%f '
export PROMPT_full='%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
'"$prompt"
export PROMPT_gitlong='$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)