summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-12-15 02:58:36 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-12-15 04:02:14 +0300
commitd5d5acb490e37d62db30a16fb434dce56c732c05 (patch)
tree1270d7a143bcd2181da142323aff8fddcc9ed905 /powerlevel9k.zsh-theme
parente505c0698e12a8769ced7e0f0bc42c3b7df3210e (diff)
Added the "visual identifier" concept to the `dir` segment.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 2 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 64427545..b0abe8c1 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -391,12 +391,10 @@ prompt_dir() {
local current_icon=''
if [[ $(print -P "%~") == '~'* ]]; then
- current_icon=$(print_icon 'HOME_ICON')
+ "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_ICON'
else
- current_icon=$(print_icon 'FOLDER_ICON')
+ "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'FOLDER_ICON'
fi
-
- "$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_icon$current_path"
}
# GO-prompt