Merge pull request #569 from docwhat/pr/home-folder-abbr-test

Added tests and replaced a sed call
This commit is contained in:
Ben Hilburn
2017-07-13 11:33:21 -04:00
committed by GitHub
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -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