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