2017-07-17 07:09:07 -07:00
|
|
|
#
|
|
|
|
# ~/.bash_profile
|
|
|
|
#
|
|
|
|
|
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 ###########################
|
|
|
|
|
2017-07-17 07:09:07 -07:00
|
|
|
source $HOME/.dotfiles/shell/common.sh
|
2015-12-20 20:39:37 -08:00
|
|
|
|
2017-03-27 19:24:20 -07:00
|
|
|
PATH="$DOTFILES/bin:/usr/local/{bin,sbin}:$PATH"
|
|
|
|
for bin in "$ENABLED_DIR"/*/bin; do
|
|
|
|
[[ -e "$bin" ]] && PATH="$bin:$PATH"
|
2015-12-20 20:39:37 -08:00
|
|
|
done
|
2017-10-07 08:38:22 -07:00
|
|
|
PATH="$HOME/bin:$PATH"
|
2015-12-20 20:39:37 -08:00
|
|
|
export PATH
|
|
|
|
|
|
|
|
|
|
|
|
## Bash rcfiles ###########################
|
2014-09-19 15:24:34 -07:00
|
|
|
|
2017-07-17 07:09:07 -07:00
|
|
|
load shell/+bash/config.bash
|
2016-02-25 21:11:30 -08:00
|
|
|
|
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 -
|
2017-07-17 07:09:07 -07:00
|
|
|
load shell/+bash/prompt.bash
|
2016-02-25 21:11:30 -08:00
|
|
|
fi
|
2015-12-22 23:22:03 -08:00
|
|
|
|
2017-07-17 07:09:07 -07:00
|
|
|
# Done!
|