From 20f4af36d0cda8a54323fb62119aff624d1740f2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 18:49:04 +0100 Subject: [PATCH] completions/git --- shell/shell.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/shell/shell.sh b/shell/shell.sh index 00174fc..0813560 100644 --- a/shell/shell.sh +++ b/shell/shell.sh @@ -35,10 +35,14 @@ shell_configure() { case "${SH}" in "bash") # completion - local file="/usr/share/bash-completion/bash_completion" - if [ -f "${file}" ]; then - . "${file}" - fi + local root="/usr/share/bash-completion" + local file path + for file in "bash_completion" "completions/git"; do + path="${root}/${file}" + if [ -f "${path}" ]; then + . "${path}" + fi + done # history HISTCONTROL="ignorespace" HISTSIZE=-1