Skip to content

Commit

Permalink
Rename _sub_complete to _sub_wrapper since it really has nothing to d…
Browse files Browse the repository at this point in the history
…o with completion
  • Loading branch information
qrush committed Dec 8, 2012
1 parent 212ac13 commit bb93f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libexec/sub-init
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ esac
commands=(`sub commands --sh`)
IFS="|"
cat <<EOS
_sub_complete() {
_sub_wrapper() {
local command="\$1"
if [ "\$#" -gt 0 ]; then
shift
Expand All @@ -86,9 +86,9 @@ EOS
# fix both cases here by letting zsh have a function, and bash have its alias.
case "$shell" in
bash )
echo "alias sub=_sub_complete"
echo "alias sub=_sub_wrapper"
;;
zsh )
echo "sub=_sub_complete"
echo "sub=_sub_wrapper"
;;
esac

0 comments on commit bb93f15

Please sign in to comment.