-
Notifications
You must be signed in to change notification settings - Fork 0
/
.allbashrc
45 lines (35 loc) · 1.12 KB
/
.allbashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE='INFINITY'
HISTFILESIZE='ANDBEYOND'
shopt -s checkwinsize
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# 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
#shopt -s autocd
#shopt -u progcomp # interferes with fzf completion, cant remember why I turned it off
shopt -s histverify
shopt -s dotglob
shopt -s globstar
# WSL Ctrl+Backspace --> delete word
bind '"\C-H":backward-kill-word'
export PROMPT_COMMAND='history -a; history -n'
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
export DOTFILES=${DOTFILES:-$this_dir}
source $DOTFILES/shell_functions.sh
source $DOTFILES/shell_settings.sh
source $DOTFILES/aliases.sh