fix: bash autocompletion on arch
This commit is contained in:
parent
75651c8607
commit
96f5928290
1 changed files with 7 additions and 1 deletions
|
|
@ -17,6 +17,13 @@ function setup_completion() {
|
||||||
export COMP_WORDBREAKS="${COMP_WORDBREAKS//\/}"
|
export COMP_WORDBREAKS="${COMP_WORDBREAKS//\/}"
|
||||||
bind 'set mark-directories on'
|
bind 'set mark-directories on'
|
||||||
bind 'set mark-symlinked-directories on'
|
bind 'set mark-symlinked-directories on'
|
||||||
|
|
||||||
|
for bash_comp in /etc /usr/share/bash-completion; do
|
||||||
|
if [ -f "$bash_comp/bash_completion" ]; then
|
||||||
|
. "$bash_comp/bash_completion"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_fzf() {
|
function setup_fzf() {
|
||||||
|
|
@ -30,6 +37,5 @@ function setup_fzf() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
. /etc/bash_completion
|
|
||||||
setup_completion
|
setup_completion
|
||||||
setup_fzf
|
setup_fzf
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue