diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-06 10:42:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-06 10:42:43 +1200 |
commit | af39b8cfa938661c04c6644de59a7a7343fff84f (patch) | |
tree | a383f5b52665af8b775dce073f3ac5ab60e7db92 /bash | |
parent | Handle raw GitLab pastes (diff) | |
download | dotfiles-af39b8cfa938661c04c6644de59a7a7343fff84f.tar.gz dotfiles-af39b8cfa938661c04c6644de59a7a7343fff84f.zip |
Add left-paren to subshell cases
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/find.bash | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bash/bash_completion.d/find.bash b/bash/bash_completion.d/find.bash index 94305a8e..50a6cc41 100644 --- a/bash/bash_completion.d/find.bash +++ b/bash/bash_completion.d/find.bash @@ -31,7 +31,7 @@ _find() { # an option; crude, but simple, and will be right the vast majority of # the time case ${COMP_WORDS[COMP_CWORD]} in - -*) + (-*) compgen -W ' -atime -ctime @@ -61,22 +61,22 @@ _find() { case "${COMP_WORDS[COMP_CWORD-1]}" in # Args to -exec and -execdir should be commands - -exec|-execdir) + (-exec|-execdir) compgen -A command -- "${COMP_WORDS[COMP_CWORD]}" ;; # Args to -group should complete group names - -group) + (-group) compgen -A group -- "${COMP_WORDS[COMP_CWORD]}" ;; # Legal POSIX flags for -type - -type) + (-type) compgen -W 'b c d f l p s' -- "${COMP_WORDS[COMP_CWORD]}" ;; # Args to -user should complete usernames - -user) + (-user) compgen -A user -- "${COMP_WORDS[COMP_CWORD]}" ;; esac |