aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2006-10-18 22:59:20 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2006-10-18 22:59:20 +0000
commitbb0b6473479869291a60ca526b803ac93cb4a5b3 (patch)
tree46d4f2ac973918715168d7e2a2873b39a37ca2c8
parent6589621aa628c347bf13b037a4323ebc4f7b4b6d (diff)
downloadpaludis-bb0b6473479869291a60ca526b803ac93cb4a5b3.tar.gz
paludis-bb0b6473479869291a60ca526b803ac93cb4a5b3.tar.xz
Refresh the bash completeion script for the new --dl-* options.
-rw-r--r--bash-completion/paludis45
1 files changed, 32 insertions, 13 deletions
diff --git a/bash-completion/paludis b/bash-completion/paludis
index 971ea54..518be68 100644
--- a/bash-completion/paludis
+++ b/bash-completion/paludis
@@ -34,7 +34,7 @@ _paludis() {
--list-vulnerabilities \
--update-news \
--log-level \
- --no-colour -C \
+ --no-colour \
--no-color \
--config-suffix -c \
--show-slot -S \
@@ -44,14 +44,16 @@ _paludis() {
--preserve-world -1 \
--no-config-protection \
--fetch -f \
- --dl-rdepend-post \
- --dl-drop-self-circular \
- --dl-drop-circular \
- --dl-drop-all -0 \
- --dl-ignore-installed -e \
- --dl-no-recursive-deps \
- --dl-max-stack-depth \
- --dl-no-unnecessary-upgrades -U \
+ --show-install-reasons \
+ --dl-reinstall \
+ --dl-upgrade \
+ --dl-installed-deps-pre \
+ --dl-installed-deps-runtime \
+ --dl-installed-deps-post \
+ --dl-uninstalled-deps-pre \
+ --dl-uninstalled-deps-runtime \
+ --dl-uninstalled-deps-post \
+ --dl-circular \
--repository \
--category \
--package \
@@ -70,8 +72,24 @@ _paludis() {
COMPREPLY=($(compgen -W "debug qa warning silent" -- "${cur}"))
return 0
;;
- --dl-rdepend-post)
- COMPREPLY=($(compgen -W "always never as-needed" -- "${cur}"))
+ --show-install-reasons)
+ COMPREPLY=($(compgen -W "none summary full" -- "${cur}"))
+ return 0
+ ;;
+ --dl-reinstall)
+ COMPREPLY=($(compgen -W "never always if-use-changed" -- "${cur}"))
+ return 0
+ ;;
+ --dl-upgrade)
+ COMPREPLY=($(compgen -W "always as-needed" -- "${cur}"))
+ return 0
+ ;;
+ --dl-installed-deps-pre|--dl-installed-deps-runtime|--dl-installed-deps-post|--dl-uninstalled-deps-pre|--dl-uninstalled-deps-runtime|--dl-uninstalled-deps-post)
+ COMPREPLY=($(compgen -W "pre pre-or-post post try-post discard" -- "${cur}"))
+ return 0
+ ;;
+ --dl-circular)
+ COMPREPLY=($(compgen -W "error discard" -- -"${cur}"))
return 0
;;
## list specifiers
@@ -97,8 +115,9 @@ _paludis() {
;;
*)
# Do package name completion, etc
- # For now, just complete on set names
- COMPREPLY=($(compgen -W "`paludis --no-colour --list-sets --log-level silent |grep \"^*\" |cut -d\" \" -f2-`" -- "${cur}"))
+ # For now, just complete on set names and filenames
+ COMPREPLY=($(compgen -W "`paludis --no-colour --list-sets --log-level silent |grep \"^*\" |cut -d\" \" -f2-`" -- "${cur}") \
+ $(compgen -o default -- "${cur}"))
return 0
;;
esac