diff --git a/scripts/.autocomplete.recent-dirs b/scripts/.autocomplete.recent-dirs index 3b97568a..0a7e61f3 100644 --- a/scripts/.autocomplete.recent-dirs +++ b/scripts/.autocomplete.recent-dirs @@ -75,6 +75,10 @@ zmodload -F zsh/parameter p:commands p:dirstack p:functions ancestor=$ancestor:h done + local exact=$reply[(r)*/$PREFIX$SUFFIX] + [[ -n $exact ]] && + reply=( $exact ${reply[@]:#$exact} ) + (( $#reply[@] )) } fi