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")
|
"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}"
|
||||||
|
[ -f "${path}" ] && . "${path}"
|
||||||
|
root="${root}/completions"
|
||||||
|
if [ -d "${root}" ]; then
|
||||||
|
set \
|
||||||
|
"git" \
|
||||||
|
"tar"
|
||||||
|
for file in "${@}"; do
|
||||||
path="${root}/${file}"
|
path="${root}/${file}"
|
||||||
[ -f "${path}" ] && . "${path}"
|
[ -f "${path}" ] && . "${path}"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
# history
|
# history
|
||||||
HISTCONTROL="ignorespace"
|
HISTCONTROL="ignorespace"
|
||||||
HISTSIZE=-1
|
HISTSIZE=-1
|
||||||
|
|
Loading…
Reference in a new issue