mcrypt: Simplify -m arg completion
This commit is contained in:
parent
377e24024e
commit
a592a09cc6
@ -17,9 +17,8 @@ _mcrypt()
|
||||
return 0
|
||||
;;
|
||||
-m|--mode)
|
||||
COMPREPLY=( $( compgen -W "$( $1 --list \
|
||||
2>/dev/null | sed -e 's/.*: //' -e 's/ $//' | \
|
||||
sort -u )" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$( $1 --list 2>/dev/null | \
|
||||
cut -d: -f2- )" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-a|--algorithm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user