X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.bashrc;h=b9c99c2044687b9ffb577a9bcefe3a27e06c33fd;hb=a80b8df3a27a371e01842c1d1a082e2c5f9602ab;hp=3c2c9590d84cbceff1da475d8c7f4f26f196ade6;hpb=207468d512b4145f34d0338d0323b832211c9221;p=dotfiles%2F.git diff --git a/.bashrc b/.bashrc index 3c2c9590..b9c99c20 100644 --- a/.bashrc +++ b/.bashrc @@ -35,14 +35,6 @@ fi #########################################AUTOCOMPLETION##################### # sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi - if [ -f /usr/share/fzf/completion.bash ]; then source /usr/share/fzf/completion.bash @@ -55,8 +47,14 @@ fi # autocomplete for sudo man and wich complete -cf sudo man wich; #For arch -bind 'set show-all-if-ambiguous on'; -bind 'TAB:menu-complete'; +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi + ########################################################################### ####################################HISTORY MANAGEMENT##################### @@ -81,3 +79,9 @@ shopt -s checkwinsize # vi mode in the shell set -o vi + + + +source /usr/share/bash-completion/bash_completion +bind 'set show-all-if-ambiguous on'; +bind 'TAB:menu-complete';