-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
56 lines (43 loc) · 1.82 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
export PATH=~/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$HOME/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH
source ~/.bash/colors
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
# git prompt goodnes
# load /etc for Ubuntu and /usr/share for Fedora
[[ -s "/usr/share/doc/git/contrib/completion/git-completion.bash" ]] && source /usr/share/doc/git/contrib/completion/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWSTASHSTATE=true
GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWUPSTREAM=verbose
PS1="${COLOR_RED}[${COLOR_WHITE}\h:\w${COLOR_RED}]${COLOR_NONE}\$ "
# load autojump if available
[[ -s "/usr/share/autojump/autojump.sh" ]] && source /usr/share/autojump/autojump.sh
function name_tab() {
echo -ne "\033]0;$1\007"
}
# Erase duplicates in history
export HISTCONTROL=erasedups
# Store 10k history entries
export HISTSIZE=10000
# Append to the history file when exiting instead of overwriting it
shopt -s histappend
# Check window size after commands in case it has changed
shopt -s checkwinsize
source ~/.bash/functions
source ~/.bash/aliases
# disable flow control (ctrl-s)
# first, make sure shell is interactive to avoid 'Inappropriate ioctl'
# messages from things like scp, git+ssh, etc
if [[ $- == *i* ]]
then
stty -ixoff
stty stop undef
stty start undef
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
export EDITOR="vim"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[[ -s "$HOME/.localconfig" ]] && source "$HOME/.localconfig"