In Awesome-Mode either print a home-icon or a folder icon, depending in which directory the user is.

This commit is contained in:
Dominik Ritter 2015-11-28 00:03:07 +01:00
commit c10bac90ba
2 changed files with 11 additions and 1 deletions

View file

@ -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