mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
Added the "visual identifier" concept to the dir
segment.
This commit is contained in:
parent
e505c0698e
commit
d5d5acb490
1 changed files with 2 additions and 4 deletions
|
@ -391,12 +391,10 @@ prompt_dir() {
|
|||
|
||||
local current_icon=''
|
||||
if [[ $(print -P "%~") == '~'* ]]; then
|
||||
current_icon=$(print_icon 'HOME_ICON')
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'HOME_ICON'
|
||||
else
|
||||
current_icon=$(print_icon 'FOLDER_ICON')
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_path" 'FOLDER_ICON'
|
||||
fi
|
||||
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_icon$current_path"
|
||||
}
|
||||
|
||||
# GO-prompt
|
||||
|
|
Loading…
Reference in a new issue