shoestrap/assets/default/fish-config/paths.fish

50 lines
1.4 KiB
Fish
Raw Normal View History

2015-06-05 19:16:12 +00:00
set det_os "unknown"
switch (uname)
case "Darwin"
set det_os "mac"
case "Linux"
set det_os "linux"
case '*'
set det_os "unknown"
end
# opt directory
set -gx PATH /opt/local/bin /opt/local/sbin $PATH
2015-06-13 00:34:49 +00:00
if [ $det_os = "linux" ]
2015-06-05 19:16:12 +00:00
set android_sdk $HOME/workspace/adt-bundle-linux/sdk
set -gx GOROOT /usr/local/go
set -gx PATH $PATH $GOROOT/bin
2015-06-13 00:34:49 +00:00
else if [ $det_os = "mac" ]
2015-06-05 19:16:12 +00:00
set android_sdk $HOME/workspace/android-sdk-macosx
# set PATH $HOME/Library/Python/2.7/bin $PATH
2015-06-13 00:34:49 +00:00
2015-08-26 21:29:51 +00:00
set -gx GOROOT /usr/local/go
2015-06-13 00:34:49 +00:00
set -gx PATH $PATH $GOROOT/bin
2015-08-26 21:29:51 +00:00
set go_workspace $HOME/workspace/go
set -gx PATH $PATH $go_workspace/bin
set -gx GOPATH $go_workspace $GOROOT
2015-06-13 00:34:49 +00:00
# Fix Python path on OSX to avoid considering System extras over newer versions
2015-11-03 19:42:24 +00:00
set -gx PYTHONPATH /Library/Python/2.7/site-packages $PYTHONPATH
2015-06-05 19:16:12 +00:00
end
2015-08-26 21:29:51 +00:00
# Google cloud sdk
# set sdk_dir "$HOME/workspace/google-cloud-sdk"
# set bin_path "$sdk_dir/bin"
# set -gx PATH $bin_path $PATH
# set -gx PYTHONPATH "$sdk_dir/platform/google_appengine" $PYTHONPATH
2015-06-05 19:16:12 +00:00
set -gx ANDROID_HOME $android_sdk
set -gx PATH $PATH $android_sdk/platform-tools $android_sdk/tools
2015-06-05 20:32:57 +00:00
set -gx PATH $HOME/bin $PATH
2015-06-05 19:16:12 +00:00
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Increase memory sizes for java using Ant
set -gx ANT_OPTS "-Xmx2048m -Xms512m"