2012-06-18 01:10:31 +02:00
|
|
|
########################################################################
|
|
|
|
# bash_profile, basically from the whole internet
|
|
|
|
# and a lot from @necolas, @mathiasbynens & @rtomayko
|
|
|
|
#
|
|
|
|
# https://github.com/mathiasbynens/dotfiles
|
|
|
|
# https://github.com/necolas/dotfiles
|
|
|
|
# https://github.com/rtomayko/dotfiles
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
2012-06-25 18:51:11 +02:00
|
|
|
# Load ~/.private, ~/.bash_prompt
|
2012-06-18 01:10:31 +02:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
2012-07-15 05:26:24 +02:00
|
|
|
for file in ~/.{bash_prompt,aliases,private}; do
|
2012-06-18 01:10:31 +02:00
|
|
|
[ -r "$file" ] && source "$file"
|
|
|
|
done
|
|
|
|
unset file
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# SHELL OPTIONS
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
2012-07-15 05:26:24 +02:00
|
|
|
# Append to the Bash history file, rather than overwriting it
|
|
|
|
shopt -s histappend
|
|
|
|
|
|
|
|
# Prefer US English and use UTF-8
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
export LANG="en_US"
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
# fuck that you have new mail shit
|
|
|
|
unset MAILCHECK
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# PATH
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
2012-06-18 21:46:35 +02:00
|
|
|
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin";
|
|
|
|
|
|
|
|
# if these bins exist, then add them to the PATH
|
2012-11-27 12:46:24 +01:00
|
|
|
ANDROID_HOME="/usr/local/Cellar/android-sdk/r21"
|
2012-06-18 21:46:35 +02:00
|
|
|
[ -d "$ANDROID_HOME" ] && PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools";
|
|
|
|
|
|
|
|
# add to beginning of PATH so that it always take precedence over /usr/bin
|
|
|
|
[ -d "/usr/local/bin" ] && PATH="/usr/local/bin:$PATH";
|
|
|
|
[ -d "/usr/local/mysql/bin" ] && PATH="/usr/local/mysql/bin:$PATH";
|
2012-11-27 12:46:24 +01:00
|
|
|
[ -d "/usr/local/share/npm/bin" ] && PATH="/usr/local/share/npm/bin:$PATH";
|
2012-06-18 21:46:35 +02:00
|
|
|
|
|
|
|
export PATH
|
2012-06-18 01:10:31 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# LSCOLORS
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
export CLICOLOR=1
|
|
|
|
export LSCOLORS=gxfxcxdxbxegedabagacad
|