Skip to content

fall through to default bash completion#27

Closed
chrisjaure wants to merge 1 commit intoqrush:masterfrom
chrisjaure:patch-1
Closed

fall through to default bash completion#27
chrisjaure wants to merge 1 commit intoqrush:masterfrom
chrisjaure:patch-1

Conversation

@chrisjaure
Copy link
Copy Markdown

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.

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

I also added the patch from #12.
@qrush
Copy link
Copy Markdown
Owner

qrush commented Dec 7, 2012

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

@chrisjaure
Copy link
Copy Markdown
Author

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

@myobie
Copy link
Copy Markdown

myobie commented Jul 31, 2013

Does this have a chance of getting merged?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to autocomplete file paths?

3 participants