Skip to content

Commit

Permalink
Use readline's default filename completion if no matches.
Browse files Browse the repository at this point in the history
  • Loading branch information
mklabs committed Oct 23, 2011
1 parent bfc6ad0 commit 5ea2d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/completion/completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if complete &>/dev/null; then
2>/dev/null)) || return $?
IFS="$si"
}
complete -F _{pkgname}_completion {pkgname}
complete -F _{pkgname}_completion -o default {pkgname}
elif compctl &>/dev/null; then
_{pkgname}_completion () {
local cword line point words si
Expand All @@ -40,7 +40,7 @@ elif compctl &>/dev/null; then
2>/dev/null)) || return $?
IFS="$si"
}
compctl -K _{pkgname}_completion {pkgname}
compctl -K _{pkgname}_completion -f {pkgname}
fi
###-end-{pkgname}-completion-###

0 comments on commit 5ea2d4c

Please sign in to comment.