[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 38e9ef18b2150740871a569ff16c6aefd018d8a2
Ville Skyttä
ville.skytta at iki.fi
Wed Apr 21 16:31:13 UTC 2010
The following commit has been merged in the master branch:
commit 65fd4f179815fb9ba3856cd9f72a5b0660d4f542
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Apr 21 00:29:45 2010 +0300
Fix indentation.
diff --git a/contrib/findutils b/contrib/findutils
index 290c395..aa0e9b1 100644
--- a/contrib/findutils
+++ b/contrib/findutils
@@ -12,54 +12,54 @@ _find()
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
- -maxdepth|-mindepth)
- COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9' -- "$cur" ) )
- return 0
- ;;
- -newer|-anewer|-cnewer|-fls|-fprint|-fprint0|-fprintf|-name|-iname| \
- -lname|-ilname|-wholename|-iwholename)
- _filedir
- return 0
- ;;
- -fstype)
- # this is highly non-portable
- [ -e /proc/filesystems ] &&
+ -maxdepth|-mindepth)
+ COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9' -- "$cur" ) )
+ return 0
+ ;;
+ -newer|-anewer|-cnewer|-fls|-fprint|-fprint0|-fprintf|-name|-iname|\
+ -lname|-ilname|-wholename|-iwholename)
+ _filedir
+ return 0
+ ;;
+ -fstype)
+ # this is highly non-portable
+ [ -e /proc/filesystems ] &&
COMPREPLY=( $( compgen -W "$( cut -d$'\t' -f2 /proc/filesystems )" \
- -- "$cur" ) )
- return 0
- ;;
- -gid)
- _gids
- return 0
- ;;
- -group)
- COMPREPLY=( $( compgen -g -- "$cur" 2>/dev/null) )
- return 0
- ;;
- -xtype|-type)
- COMPREPLY=( $( compgen -W 'b c d p f l s' -- "$cur" ) )
- return 0
- ;;
- -uid)
- _uids
- return 0
- ;;
- -user)
- COMPREPLY=( $( compgen -u -- "$cur" ) )
- return 0
- ;;
- -exec|-ok)
- COMP_WORDS=(COMP_WORDS[0] "$cur")
- COMP_CWORD=1
- _command
- return 0
- ;;
- -[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename| \
- -ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size| \
- -used|-printf)
- # do nothing, just wait for a parameter to be given
- return 0
- ;;
+ -- "$cur" ) )
+ return 0
+ ;;
+ -gid)
+ _gids
+ return 0
+ ;;
+ -group)
+ COMPREPLY=( $( compgen -g -- "$cur" 2>/dev/null) )
+ return 0
+ ;;
+ -xtype|-type)
+ COMPREPLY=( $( compgen -W 'b c d p f l s' -- "$cur" ) )
+ return 0
+ ;;
+ -uid)
+ _uids
+ return 0
+ ;;
+ -user)
+ COMPREPLY=( $( compgen -u -- "$cur" ) )
+ return 0
+ ;;
+ -exec|-ok)
+ COMP_WORDS=(COMP_WORDS[0] "$cur")
+ COMP_CWORD=1
+ _command
+ return 0
+ ;;
+ -[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\
+ -ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\
+ -used|-printf)
+ # do nothing, just wait for a parameter to be given
+ return 0
+ ;;
esac
_expand || return 0
--
bash-completion
More information about the Bash-completion-commits
mailing list