#########################################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
# 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#####################
# vi mode in the shell
set -o vi
+#####adding the agent forwarding stuff
+if [ -z "$SSH_AUTH_SOCK" ] ; then
+ eval `ssh-agent` > /dev/null 2>&1;
+ ssh-add > /dev/null 2>&1;
+
+fi
+
+
+source /usr/share/bash-completion/bash_completion
+bind 'set show-all-if-ambiguous on';
+bind 'TAB:menu-complete';