aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-07-13 18:33:21 +0300
committerGitHub <noreply@github.com>2017-07-13 18:33:21 +0300
commitc69d45cdcce1f0d0542673be23b7c524eb83870d (patch)
tree9c6030b09e241835777b6a21367958df93a2ba56 /powerlevel9k.zsh-theme
parentba41840ebc4a37eb81a9e7d398e21ff7327c4476 (diff)
parentaca0f31eb00df91a2b40ac6baea8efb64bd84cab (diff)
Merge pull request #569 from docwhat/pr/home-folder-abbr-test
Added tests and replaced a sed call
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index b37f12c7..b08155ed 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -794,7 +794,7 @@ prompt_dir() {
fi
if [[ "${POWERLEVEL9K_HOME_FOLDER_ABBREVIATION}" != "~" ]]; then
- current_path="$( echo "${current_path}" | sed "s/^~/${POWERLEVEL9K_HOME_FOLDER_ABBREVIATION}/")"
+ current_path=${current_path/#\~/${POWERLEVEL9K_HOME_FOLDER_ABBREVIATION}}
fi
typeset -AH dir_states