mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Use shrink_path in agnoster theme if available
This commit is contained in:
parent
d874c73f19
commit
edd7823388
1 changed files with 5 additions and 1 deletions
|
|
@ -187,7 +187,11 @@ prompt_hg() {
|
|||
|
||||
# Dir: current working directory
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue