-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bashrc
63 lines (49 loc) · 1.45 KB
/
.bashrc
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# append to the history file, don't overwrite it
shopt -s histappend
shopt -s checkwinsize
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# bind -x '"\C-k": printf "\ec"';
# bind -x '"^K": printf "\ec"';
# bind -x '"^K": clear && printf "\e[3J"';
# bind -x '"^K": clear && printf "\ec" && printf "^M"';
if [ "$(type -t __git_ps1)" = "function" ]; then
git_branch=$(__git_ps1)
fi
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
fi
if [ -f ~/.bash_variables ]; then
. ~/.bash_variables
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
if [ -f /usr/lib/git-core/git-sh-prompt ]; then
. /usr/lib/git-core/git-sh-prompt
fi
complete -o default -o nospace -W "$(grep "^Host" $HOME/.ssh/config | cut -d" " -f2)" scp sftp ssh
if [[ "$OSTYPE" =~ "linux" ]]; then
xhost +LOCAL: 1>/dev/null 2>/dev/null
fi
[ -d ~/bin ] && export PATH="$PATH:~/bin"
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
PATH=/usr/lib/postgresql/9.6/bin:$PATH
PATH=~/.local/bin:$PATH
PATH="$HOME/.rbenv/bin:$PATH"
export PATH
eval "$(rbenv init -)"
# eval "$(direnv hook bash)"