aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2017-02-02 02:31:04 +0300
committerDominik Ritter <dritter03@googlemail.com>2017-02-02 02:31:04 +0300
commiteb865664e4225b94fc01ce1c05f27d1db18e172d (patch)
tree031730492e7224db793118beea67d86ac7819366 /powerlevel9k.zsh-theme
parent9f4772f9930c7d56ab04df900ac94456e5a08a22 (diff)
Add comments to the dir segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 2 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 420f7d0b..723954be 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -615,8 +615,10 @@ prompt_dir() {
for marked_folder in $(upsearch $POWERLEVEL9K_SHORTEN_FOLDER_MARKER); do
if [[ "$marked_folder" == "/" ]]; then
+ # If we reached root folder, stop upsearch.
current_path="/"
elif [[ "$marked_folder" == "$HOME" ]]; then
+ # If we reached home folder, stop upsearch.
current_path="~"
elif [[ "${marked_folder%/*}" == $last_marked_folder ]]; then
current_path="${current_path%/}/${marked_folder##*/}"