diff options
Diffstat (limited to 'shells/bash-completion/files/patch-freebsd-update')
-rw-r--r-- | shells/bash-completion/files/patch-freebsd-update | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/shells/bash-completion/files/patch-freebsd-update b/shells/bash-completion/files/patch-freebsd-update deleted file mode 100644 index e25f83e14002..000000000000 --- a/shells/bash-completion/files/patch-freebsd-update +++ /dev/null @@ -1,56 +0,0 @@ -From 5ff5a4e0f875e8d1a49848408cfe72778889cbe8 Mon Sep 17 00:00:00 2001 -From: Peter Dave Hello <hsu@peterdavehello.org> -Date: Tue, 7 Jan 2014 12:29:24 +0800 -Subject: freebsd-update: New completion. - - -diff --git completions/Makefile.am completions/Makefile.am -index 7b8f767..9ef17ea 100644 ---- completions/Makefile.am -+++ completions/Makefile.am -@@ -96,6 +96,7 @@ bashcomp_DATA = 2to3 \ - filesnarf \ - find \ - find_member \ -+ freebsd-update \ - freeciv-gtk2 \ - freeciv-server \ - function \ -diff --git completions/freebsd-update completions/freebsd-update -new file mode 100644 -index 0000000..4cf8650 ---- /dev/null -+++ completions/freebsd-update -@@ -0,0 +1,29 @@ -+# bash completion for FreeBSD update tool - freebsd-update -*- shell-script -*- -+ -+[[ $OSTYPE == *freebsd* ]] || return 1 -+ -+_freebsd_update() -+{ -+ local cur prev words cword -+ _init_completion || return -+ -+ case $prev in -+ -b|-d) -+ _filedir -d -+ return -+ ;; -+ -f) -+ _filedir -+ return -+ ;; -+ -k|-r|-s|-t) -+ return -+ ;; -+ esac -+ -+ COMPREPLY=( $(compgen -W "fetch cron upgrade install rollback IDS" -- \ -+ $cur) ) -+} && -+complete -F _freebsd_update freebsd-update -+ -+# ex: ts=4 sw=4 et filetype=sh --- -cgit v0.10.2 - |