In Awesome-Mode either print a home-icon or a folder icon, depending in which directory the user is.
This commit is contained in:
parent
3fea92369f
commit
c10bac90ba
2 changed files with 11 additions and 1 deletions
|
@ -320,7 +320,14 @@ prompt_dir() {
|
|||
|
||||
fi
|
||||
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$(print_icon 'HOME_ICON')$current_path"
|
||||
local current_icon=''
|
||||
if [[ "$current_path" == '~'* ]]; then
|
||||
current_icon=$(print_icon 'HOME_ICON')
|
||||
else
|
||||
current_icon=$(print_icon 'FOLDER_ICON')
|
||||
fi
|
||||
|
||||
"$1_prompt_segment" "$0" "blue" "$DEFAULT_COLOR" "$current_icon$current_path"
|
||||
}
|
||||
|
||||
# GO-prompt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue