qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.74k stars 148 forks source link

fall through to default bash completion #27

Closed chrisjaure closed 2 years ago

chrisjaure commented 11 years ago

When there are no completions for a command, fall through to default bash completion. Fixes #16.

It's still necessary to add this in your command if it produces output:

# Provide sub completions
if [ "$1" = "--complete" ]; then
  exit 0
fi

I also added the patch from #12.

qrush commented 11 years ago

I feel like we should offer this for both bash and zsh (this zsh user would enjoy that!)

chrisjaure commented 11 years ago

Definitely agree, but I am not a zsh user so someone more knowledgeable in that area will need to add it.

myobie commented 11 years ago

Does this have a chance of getting merged?