2014-09-19 15:24:34 -07:00
|
|
|
# set 256 color profile where possible
|
|
|
|
if [[ $COLORTERM == gnome-* && $TERM == xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
|
|
|
|
export TERM=gnome-256color
|
|
|
|
elif infocmp xterm-256color >/dev/null 2>&1; then
|
|
|
|
export TERM=xterm-256color
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2015-12-20 20:39:37 -08:00
|
|
|
## Bash rcfiles ###########################
|
|
|
|
|
|
|
|
source $HOME/.dotfiles/.common.sh
|
|
|
|
|
|
|
|
declare -a paths=(
|
|
|
|
"$DOTFILES/{bin,scripts}"
|
|
|
|
"$HOME/.{rb,py}env/{shims,bin}"
|
|
|
|
"/usr/local/{bin,sbin}"
|
|
|
|
)
|
|
|
|
[[ "$OSTYPE" == "darwin"* ]] && paths+="$(brew --prefix coreutils)/libexec/gnubin"
|
|
|
|
|
|
|
|
for index in ${!paths[*]}; do
|
|
|
|
[ -d ${paths[$index]} ] && PATH="${paths[$index]}:$PATH"
|
|
|
|
done
|
|
|
|
unset paths
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
|
|
|
|
## Bash rcfiles ###########################
|
2014-09-19 15:24:34 -07:00
|
|
|
|
2016-02-25 21:11:30 -08:00
|
|
|
source ~/.bash/config
|
|
|
|
|
2015-12-22 23:22:03 -08:00
|
|
|
cache rbenv init - --no-rehash
|
|
|
|
cache pyenv init - --no-rehash
|
2016-02-25 21:11:30 -08:00
|
|
|
if is-interactive; then
|
|
|
|
cache fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install
|
|
|
|
cache tmuxifier init -
|
|
|
|
source ~/.bash/prompt
|
|
|
|
fi
|
2015-12-22 23:22:03 -08:00
|
|
|
|