completions/git

This commit is contained in:
Marc Beninca 2024-11-17 18:49:04 +01:00
parent 8262f7c5d0
commit 20f4af36d0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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