Permalink
Browse files

Rename _sub_complete to _sub_wrapper since it really has nothing to d…

…o with completion
  • Loading branch information...
1 parent 212ac13 commit bb93f151df9e4219ae4153c83aad63ee6494a5d8 @qrush qrush committed Dec 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 libexec/sub-init
View
@@ -66,7 +66,7 @@ esac
commands=(`sub commands --sh`)
IFS="|"
cat <<EOS
-_sub_complete() {
+_sub_wrapper() {
local command="\$1"
if [ "\$#" -gt 0 ]; then
shift
@@ -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.