From 4eeb96915724d6c5861bb35cf167afdeabaa7183 Mon Sep 17 00:00:00 2001 From: Viktor Bale Date: Mon, 5 Feb 2018 20:43:29 +0100 Subject: [PATCH] Fixed tab completion problem where a space is always added after path even when it shouldn't --- scripts/shell_completions/bash/borg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/shell_completions/bash/borg b/scripts/shell_completions/bash/borg index 121c8b565..e36b9aa02 100644 --- a/scripts/shell_completions/bash/borg +++ b/scripts/shell_completions/bash/borg @@ -7,6 +7,7 @@ _borg() { + compopt -o default COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD-1]}" @@ -18,7 +19,8 @@ _borg() if [[ ${COMP_CWORD} == 1 ]] ; then local borg_commands="init create extract check rename list diff delete prune info mount umount key serve upgrade recreate export-tar with-lock break-lock benchmark config" COMPREPLY=( $(compgen -W "${borg_commands}" -- ${cur}) ) - return 0 + compopt +o default + return 0 fi case "${prev}" in @@ -159,7 +161,6 @@ _borg() return 0 fi - COMPREPLY=( $(compgen -f ${cur}) ) return 0 }