diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 07546fd3..e05c2ae7 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -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