mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
Merge pull request #569 from docwhat/pr/home-folder-abbr-test
Added tests and replaced a sed call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user