aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-17 11:01:06 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-17 11:01:06 +0300
commit49063ee757c2339c2a0cde14e886896373cd6a54 (patch)
tree4c0d389e8d7557260bc2542bb92fc7509746aac9 /internal/p10k.zsh
parent33e1dd77908c0ae9a12b07b8e88f4ae16a9e53bd (diff)
add ranger prompt; see #171
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 16f2452c..3b7897ca 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3034,6 +3034,11 @@ function prompt_nordvpn() {
esac
}
+function prompt_ranger() {
+ [[ -n $RANGER_LEVEL ]] || return
+ _p9k_prompt_segment $0 $_p9k_color1 yellow RANGER_ICON 0 '' $RANGER_LEVEL
+}
+
_p9k_preexec() {
if (( $+_p9k_real_zle_rprompt_indent )); then
if [[ -n $_p9k_real_zle_rprompt_indent ]]; then