Use shrink_path in agnoster theme if available

This commit is contained in:
Kaleb Elwert 2017-02-28 11:54:45 -08:00
parent d874c73f19
commit edd7823388

View File

@ -187,7 +187,11 @@ prompt_hg() {
# Dir: current working directory
prompt_dir() {
if type shrink_path &>/dev/null; then
prompt_segment blue black "$(shrink_path -t -l)"
else
prompt_segment blue black '%~'
fi
}
# Virtualenv: current working virtualenv