-
Notifications
You must be signed in to change notification settings - Fork 1
/
bashrc.symlink
47 lines (39 loc) · 1.26 KB
/
bashrc.symlink
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
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
export GREP_COLOR='1;31'
export CLICOLOR=1
#export LSCOLORS=Ahfxcxdxbxegedabagacad
#ExFxCxDxBxegedabagacad
export LESS="-erX"
export DISPLAY=:0.0
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export HISTCONTROL="erasedups"
export HISTSIZE=10000
shopt -s histappend
shopt -s cdspell
shopt -s cmdhist
if [[ ${EUID} == 0 ]] ; then
PS1="\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] "
else
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \W \$\[\033[00m\] "
fi
export PS1
# public repo bash config files
if [ "`ls $HOME/.dotfiles/bash/*.bash | wc -l 2> /dev/null`" != 0 ]; then
for config_file in ~/.dotfiles/bash/*.bash; do
source $config_file
done
fi
# private repro bash config files
if [ "`ls $HOME/.dotfiles/privatedots/bash/*.bash 2> /dev/null | wc -l`" != 0 ]; then
for config_file in ~/.dotfiles/privatedots/bash/*.bash; do
source $config_file
done
fi
# rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && PATH=$PATH:$HOME/.rvm/bin && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# rbenv
if `type rbenv rbenv > /dev/null 2>&1`; then export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)"; fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash