ajout completion scriptborg
This commit is contained in:
parent
05219947bc
commit
8dd647045f
17
bin/.scriptBorg-completion.bash
Normal file
17
bin/.scriptBorg-completion.bash
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
KAZ_ROOT=$(cd "$(dirname ${COMP_WORDS[0]})"/..; pwd)
|
||||||
|
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
||||||
|
setKazVars
|
||||||
|
|
||||||
|
_borg()
|
||||||
|
{
|
||||||
|
local current=${COMP_WORDS[COMP_CWORD]}
|
||||||
|
case "$current" in
|
||||||
|
-*)
|
||||||
|
local_prop="-h -d -i -l -m -u -t -p -v"
|
||||||
|
COMPREPLY=( $(compgen -W "${local_prop}" -- $current) )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
complete -F _borg scriptBorg.sh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user