mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-17 21:30:07 +00:00
Added the "state" concept to the dir
segment.
This commit is contained in:
parent
056d4ff29a
commit
cd5b4d0deb
1 changed files with 2 additions and 2 deletions
|
@ -394,9 +394,9 @@ prompt_dir() {
|
|||
|
||||
local current_icon=''
|
||||
if [[ $(print -P "%~") == '~'* ]]; then
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_ICON'
|
||||
"$1_prompt_segment" "$0_HOME" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_ICON'
|
||||
else
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'FOLDER_ICON'
|
||||
"$1_prompt_segment" "$0_DEFAULT" "blue" "$DEFAULT_COLOR" "$current_path" 'FOLDER_ICON'
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue