Skip to content

Commit

Permalink
use default completion after cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Konfekt authored Nov 20, 2019
1 parent eedabdf commit aa491ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ __enhancd::completion::run() {
tokens=(${(z)LBUFFER})
cmd=${tokens[1]}
if [[ "$LBUFFER" =~ "^\ *${ENHANCD_COMMAND}\ *$" ]]; then
if [[ "$LBUFFER" =~ "^\s*cd$" ]]; then
zle ${ENHANCD_COMPLETION_DEFAULT:-expand-or-complete}
elif [ "$cmd" = "$ENHANCD_COMMAND" ]; then
__enhancd::completion::complete ${tokens[2,${#tokens}]/#\~/$HOME}
Expand Down

0 comments on commit aa491ee

Please sign in to comment.