summaryrefslogtreecommitdiffstats
path: root/.gita-completion.bash
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-09 07:44:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-09 07:44:15 +0000
commit74e70d5613813fb731614dbdb4c9f722263a9cd0 (patch)
treeefd3527249ffb15caf496a28d68fb792e988bd1b /.gita-completion.bash
parentReleasing debian version 0.15.9-1. (diff)
downloadgita-74e70d5613813fb731614dbdb4c9f722263a9cd0.tar.xz
gita-74e70d5613813fb731614dbdb4c9f722263a9cd0.zip
Merging upstream version 0.16.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.gita-completion.bash')
-rw-r--r--.gita-completion.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gita-completion.bash b/.gita-completion.bash
index 493db05..cad120c 100644
--- a/.gita-completion.bash
+++ b/.gita-completion.bash
@@ -3,10 +3,12 @@ _gita_completions()
{
local cur commands repos cmd
+ local IFS=$'\n\t '
cur=${COMP_WORDS[COMP_CWORD]}
cmd=${COMP_WORDS[1]}
+
# this doesn't work for two repos with the same basename
#gita_path=${XDG_CONFIG_HOME:-$HOME/.config}/gita/repo_path
#repos=`awk '{split($0, paths, ":")} END {for (i in paths) {n=split(paths[i],b, /\//); print b[n]}}' ${gita_path}`