1 # ~/.bashrc: executed by bash(1) for non-login shells.
2 # If not running interactively, don't do anything
7 #Import all of the subfiles for .bashrc
9 if [ -f ~/.config/bashrc/alias ];
11 . ~/.config/bashrc/alias
14 if [ -f ~/.config/bashrc/promts ];
16 . ~/.config/bashrc/promts
19 if [ -f ~/.config/bashrc/titles ];
21 . ~/.config/bashrc/titles
24 if [ -f ~/.config/bashrc/exports ];
26 . ~/.config/bashrc/exports
29 if [ -f ~/.config/bashrc/functions ];
31 . ~/.config/bashrc/functions
36 #########################################AUTOCOMPLETION#####################
37 # sources /etc/bash.bashrc).
38 if [ -f /usr/share/fzf/completion.bash ];
40 source /usr/share/fzf/completion.bash
43 if [ -f /usr/share/fzf/completion.bash ];
45 source /usr/share/fzf/key-bindings.bash
47 # autocomplete for sudo man and wich
48 complete -cf sudo man wich;
50 if ! shopt -oq posix; then
51 if [ -f /usr/share/bash-completion/bash_completion ]; then
52 . /usr/share/bash-completion/bash_completion
53 elif [ -f /etc/bash_completion ]; then
54 . /etc/bash_completion
58 ###########################################################################
60 ####################################HISTORY MANAGEMENT#####################
61 # don't put duplicate lines or lines starting with space in the history.
62 HISTCONTROL=ignoreboth
63 # append to the history file, don't overwrite it
65 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
68 export HISTIGNORE='&:ls:ll:la:cd:exit:clear:history'
69 ###########################################################################
73 # check the window size after each command and, if necessary,
74 # update the values of LINES and COLUMNS.
77 # make less more friendly for non-text input files, see lesspipe(1)
78 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
79 # vi mode in the shell
85 source /usr/share/bash-completion/bash_completion
86 bind 'set show-all-if-ambiguous on';
87 bind 'TAB:menu-complete';