From 8dd647045fe82e0e1954d770976b5ddbd900f28b Mon Sep 17 00:00:00 2001 From: didier Date: Wed, 10 Jul 2024 18:12:55 +0200 Subject: [PATCH] ajout completion scriptborg --- bin/.scriptBorg-completion.bash | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bin/.scriptBorg-completion.bash diff --git a/bin/.scriptBorg-completion.bash b/bin/.scriptBorg-completion.bash new file mode 100644 index 0000000..e2ca9d2 --- /dev/null +++ b/bin/.scriptBorg-completion.bash @@ -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 +