[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-175-gd141f9c
Ville Skyttä
ville.skytta at iki.fi
Thu Jun 14 18:31:44 UTC 2012
The following commit has been merged in the master branch:
commit d141f9c6ebd8659638de9d5de64e202ac1f450c0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Thu Jun 14 21:31:30 2012 +0300
lbzip2: Add -n argument completion.
diff --git a/completions/bzip2 b/completions/bzip2
index 6e6c68b..1bc9828 100644
--- a/completions/bzip2
+++ b/completions/bzip2
@@ -9,6 +9,10 @@ _bzip2()
-b|-h|--help|-p)
return 0
;;
+ -n)
+ COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
+ return 0
+ ;;
esac
if [[ "$cur" == -* ]]; then
--
bash-completion
More information about the Bash-completion-commits
mailing list