aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-07-12 08:02:46 +0300
committerChristian Höltje <docwhat@gerf.org>2017-07-12 08:02:46 +0300
commitaca0f31eb00df91a2b40ac6baea8efb64bd84cab (patch)
tree14ec34ee7038d32c2bc53962c7b26279fc142b19 /powerlevel9k.zsh-theme
parent0fded47ab587a28e4656b95dff39340d204f28d4 (diff)
Replaced a sed call with pure ZSH
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 534a5892..2e8c30bb 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -811,7 +811,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