Use shrink_path in agnoster theme if available
This commit is contained in:
parent
d874c73f19
commit
edd7823388
@ -187,7 +187,11 @@ prompt_hg() {
|
|||||||
|
|
||||||
# Dir: current working directory
|
# Dir: current working directory
|
||||||
prompt_dir() {
|
prompt_dir() {
|
||||||
prompt_segment blue black '%~'
|
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
|
# Virtualenv: current working virtualenv
|
||||||
|
Loading…
Reference in New Issue
Block a user