[Bash-completion-commits] [SCM] bash-completion branch, master, updated. ed93d0b2b7f2294913a09cf035966bc09ef28688
Ville Skyttä
ville.skytta at iki.fi
Tue Apr 14 20:48:24 UTC 2009
The following commit has been merged in the master branch:
commit ea731310a3ae2c43dbbc68ed755016bd393b1915
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Apr 14 23:46:38 2009 +0300
Add chown --from and --reference value completions.
diff --git a/CHANGES b/CHANGES
index 7c70d15..9292f6c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -35,6 +35,7 @@ bash-completion (1.x)
* Add _split_longopt() helper for improved handling of long options that
take arguments in both "--foo bar" and "--foo=bar" formats.
* Use _split_longopt to improve and clean up aspell, chgrp, chown completion.
+ * Add chown --from and --reference value completions.
[ Todd Zullinger ]
* Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/bash_completion b/bash_completion
index aa4b550..96823bb 100644
--- a/bash_completion
+++ b/bash_completion
@@ -797,6 +797,17 @@ _chown()
_split_longopt && split=true
+ case "$prev" in
+ --from)
+ _usergroup
+ return 0
+ ;;
+ --reference)
+ _filedir
+ return 0
+ ;;
+ esac
+
$split && return 0
# options completion
--
bash-completion
More information about the Bash-completion-commits
mailing list