This commit is contained in:
Marc Beninca 2024-11-17 19:23:24 +01:00
parent 982a81adbe
commit 44c771534a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -36,11 +36,19 @@ shell_configure() {
"bash") "bash")
# completion # completion
local root="/usr/share/bash-completion" local root="/usr/share/bash-completion"
local file path local file="bash_completion"
for file in "bash_completion" "completions/git"; do local path="${root}/${file}"
path="${root}/${file}" [ -f "${path}" ] && . "${path}"
[ -f "${path}" ] && . "${path}" root="${root}/completions"
done if [ -d "${root}" ]; then
set \
"git" \
"tar"
for file in "${@}"; do
path="${root}/${file}"
[ -f "${path}" ] && . "${path}"
done
fi
# history # history
HISTCONTROL="ignorespace" HISTCONTROL="ignorespace"
HISTSIZE=-1 HISTSIZE=-1