Merge pull request #569 from docwhat/pr/home-folder-abbr-test
Added tests and replaced a sed call
This commit is contained in:
commit
c69d45cdcc
2 changed files with 26 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue