Add ranger hint to zsh prompt
This commit is contained in:
parent
296c9ce35a
commit
4eccff5f8f
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -18,7 +18,7 @@ setopt hist_ignore_space
|
||||||
|
|
||||||
bindkey -v
|
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}%~
|
export PROMPT_full='%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
|
||||||
'"$prompt"
|
'"$prompt"
|
||||||
export PROMPT_gitlong='$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
|
export PROMPT_gitlong='$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
|
||||||
|
|
Loading…
Reference in a new issue