2014-05-07 19:35:02 -06:00
|
|
|
function add_to_front_of_path {
|
|
|
|
export PATH=$@:$(echo $PATH | sed "s|:*$@||g" | sed "s|^:||")
|
|
|
|
}
|
|
|
|
|
|
|
|
function add_to_back_of_path {
|
|
|
|
export PATH=$(echo $PATH | sed "s|:*$@||g" | sed "s|^:||"):$@
|
|
|
|
}
|
|
|
|
|
|
|
|
add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages"
|
|
|
|
hash brew 2>/dev/null && add_to_front_of_path "$(brew --prefix coreutils)/libexec/gnubin"
|
|
|
|
add_to_front_of_path "/usr/local/bin"
|
2014-10-21 16:20:43 -06:00
|
|
|
hash brew 2>/dev/null && add_to_front_of_path "$(brew --prefix emacs)/libexec/gnubin"
|
2014-05-07 19:35:02 -06:00
|
|
|
|
2013-11-22 11:52:22 -07:00
|
|
|
for filename in ~/.lib/shellrc/*; do
|
|
|
|
source $filename
|
|
|
|
done
|
2014-08-25 15:25:10 -06:00
|
|
|
|
2014-10-09 22:22:40 -06:00
|
|
|
if is_osx; then
|
|
|
|
export CFLAGS=-Qunused-arguments
|
|
|
|
export CPPFLAGS=-Qunused-arguments
|
2014-10-20 17:41:14 -06:00
|
|
|
add_to_back_of_path "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/"
|
2014-10-09 22:22:40 -06:00
|
|
|
fi
|
|
|
|
|
2014-10-08 05:03:32 -06:00
|
|
|
add_to_back_of_path "$(dotfiles_directory)/resources/python"
|
2014-10-20 17:41:14 -06:00
|
|
|
add_to_back_of_path "/usr/local/sbin"
|
2014-10-08 05:03:32 -06:00
|
|
|
|
2014-08-25 15:25:10 -06:00
|
|
|
# Access gnu man pages.
|
2014-10-20 19:53:54 -06:00
|
|
|
MANPATH="$(brew --prefix)/opt/coreutils/libexec/gnuman:$MANPATH"
|