[Bash-completion-commits] [bash-completion] 02/03: mcrypt: Simplify -m arg completion
Ville Skyttä
scop-guest at moszumanska.debian.org
Mon Dec 29 09:38:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit a592a09cc6fb1d43ef737baf5b31371f55ad19d0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Dec 29 11:35:16 2014 +0200
mcrypt: Simplify -m arg completion
---
completions/mcrypt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/completions/mcrypt b/completions/mcrypt
index 90cc17f..5b40ba0 100644
--- a/completions/mcrypt
+++ b/completions/mcrypt
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list