From e2f93d4fd4d4cea493e7578ab6a47a1f3588ef1d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 15 Dec 2018 11:19:04 +0100 Subject: [PATCH] add backup-client bash completion --- debian/api-test-server.bash-completion | 1 + debian/backup-client.bash-completion | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 debian/backup-client.bash-completion diff --git a/debian/api-test-server.bash-completion b/debian/api-test-server.bash-completion index f84ffd49..666f1c0c 100644 --- a/debian/api-test-server.bash-completion +++ b/debian/api-test-server.bash-completion @@ -1 +1,2 @@ debian/pbs.bash-completion pbs +debian/backup-client.bash-completion backup-client diff --git a/debian/backup-client.bash-completion b/debian/backup-client.bash-completion new file mode 100644 index 00000000..9917e964 --- /dev/null +++ b/debian/backup-client.bash-completion @@ -0,0 +1,8 @@ +# backup-client bash completion + +# see http://tiswww.case.edu/php/chet/bash/FAQ +# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion +# this modifies global var, but I found no better way +COMP_WORDBREAKS=${COMP_WORDBREAKS//:} + +complete -C 'backup-client bashcomplete' backup-client