freebsd-update: New completion.
This commit is contained in:
parent
c3770c1798
commit
5ff5a4e0f8
@ -96,6 +96,7 @@ bashcomp_DATA = 2to3 \
|
||||
filesnarf \
|
||||
find \
|
||||
find_member \
|
||||
freebsd-update \
|
||||
freeciv-gtk2 \
|
||||
freeciv-server \
|
||||
function \
|
||||
|
29
completions/freebsd-update
Normal file
29
completions/freebsd-update
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user