diff options
author | Christian Höltje <docwhat@gerf.org> | 2017-07-12 08:02:46 +0300 |
---|---|---|
committer | Christian Höltje <docwhat@gerf.org> | 2017-07-12 08:02:46 +0300 |
commit | aca0f31eb00df91a2b40ac6baea8efb64bd84cab (patch) | |
tree | 14ec34ee7038d32c2bc53962c7b26279fc142b19 /powerlevel9k.zsh-theme | |
parent | 0fded47ab587a28e4656b95dff39340d204f28d4 (diff) |
Replaced a sed call with pure ZSH
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
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 |