projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
efficient vim config
[dotfiles/.git]
/
.bashrc
diff --git
a/.bashrc
b/.bashrc
index 3c2c9590d84cbceff1da475d8c7f4f26f196ade6..b9c99c2044687b9ffb577a9bcefe3a27e06c33fd 100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-35,14
+35,6
@@
fi
#########################################AUTOCOMPLETION#####################
# sources /etc/bash.bashrc).
#########################################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
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
# 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#####################
###########################################################################
####################################HISTORY MANAGEMENT#####################
@@
-81,3
+79,9
@@
shopt -s checkwinsize
# vi mode in the shell
set -o vi
# 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';