set
This commit is contained in:
parent
982a81adbe
commit
44c771534a
1 changed files with 13 additions and 5 deletions
|
@ -36,11 +36,19 @@ shell_configure() {
|
|||
"bash")
|
||||
# completion
|
||||
local root="/usr/share/bash-completion"
|
||||
local file path
|
||||
for file in "bash_completion" "completions/git"; do
|
||||
path="${root}/${file}"
|
||||
[ -f "${path}" ] && . "${path}"
|
||||
done
|
||||
local file="bash_completion"
|
||||
local path="${root}/${file}"
|
||||
[ -f "${path}" ] && . "${path}"
|
||||
root="${root}/completions"
|
||||
if [ -d "${root}" ]; then
|
||||
set \
|
||||
"git" \
|
||||
"tar"
|
||||
for file in "${@}"; do
|
||||
path="${root}/${file}"
|
||||
[ -f "${path}" ] && . "${path}"
|
||||
done
|
||||
fi
|
||||
# history
|
||||
HISTCONTROL="ignorespace"
|
||||
HISTSIZE=-1
|
||||
|
|
Loading…
Reference in a new issue