Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Don't swallow options #65

Closed
wants to merge 1 commit into from

2 participants

@baskerville

Probably a typo.

@falconindy
Owner

This is intentional, but I sort of want to rewrite the completion entirely. In it's current state, it tries to be too smart, and ends up being really dumb (and unmaintainable).

In your case, I think the better fix would to be to use -[^-]*t

@falconindy
Owner

Take a look at 39052fe -- it should fix a bunch of problems.

@baskerville

Indeed, this is much easier to grasp.
Thanks.

@baskerville baskerville closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 4, 2013
  1. @baskerville

    Don't swallow options

    baskerville authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  bash_completion
View
2  bash_completion
@@ -21,7 +21,7 @@ _cower() {
COMPREPLY=($(compgen -W "$opts" -- $cur))
elif [[ $prev = --?(r)sort ]]; then # sort keys
COMPREPLY=($(compgen -W "$sortopts" -- $cur))
- elif [[ $prev = @(-*t|--target) ]]; then # directories
+ elif [[ $prev = @(-t|--target) ]]; then # directories
_filedir -d
elif [[ $prev = --ignore ]]; then # installed packages
COMPREPLY=($(compgen -W "$(pacman -Qq)" -- $cur))
Something went wrong with that request. Please try again.