summaryrefslogtreecommitdiff
path: root/completions/upgradepkg
diff options
context:
space:
mode:
Diffstat (limited to 'completions/upgradepkg')
-rw-r--r--completions/upgradepkg23
1 files changed, 23 insertions, 0 deletions
diff --git a/completions/upgradepkg b/completions/upgradepkg
new file mode 100644
index 00000000..e4a7d8ad
--- /dev/null
+++ b/completions/upgradepkg
@@ -0,0 +1,23 @@
+# Slackware Linux upgradepkg completion
+
+_upgradepkg()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '--dry-run --install-new --reinstall \
+ --verbose' -- "$cur") )
+ return 0
+ fi
+
+ _filedir "t[bglx]z"
+} && complete -F _upgradepkg upgradepkg
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh