mcrypt: Simplify -m arg completion

This commit is contained in:
Ville Skyttä 2014-12-29 11:35:16 +02:00
parent 377e24024e
commit a592a09cc6

View File

@ -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)