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
|
2016-02-04 18:33:08 +00:00
|
|
|
if [ -d /opt/local ]
|
|
|
|
set -gx PATH /opt/local/bin /opt/local/sbin $PATH
|
|
|
|
end
|
|
|
|
|
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
|
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
|
2015-06-13 00:34:49 +00:00
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
# Set go paths
|
|
|
|
set goroot /opt/local/lib/go
|
|
|
|
set gopath $HOME/workspace/go_path
|
2015-08-26 21:29:51 +00:00
|
|
|
|
2016-02-04 18:33:08 +00:00
|
|
|
# set PATH $HOME/Library/Python/2.7/bin $PATH
|
2015-06-13 00:34:49 +00:00
|
|
|
# Fix Python path on OSX to avoid considering System extras over newer versions
|
2016-01-11 23:12:02 +00:00
|
|
|
set -gx PYTHONPATH /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages /Library/Python/2.7/site-packages $PYTHONPATH
|
2015-06-05 19:16:12 +00:00
|
|
|
end
|
|
|
|
|
2017-03-23 22:42:54 +00:00
|
|
|
# Google GO
|
|
|
|
if [ -d "$goroot" ]
|
|
|
|
set -gx GOROOT $goroot
|
|
|
|
set -gx PATH $PATH $GOROOT/bin
|
|
|
|
end
|
|
|
|
if [ -d "$gopath" ]
|
|
|
|
set -gx GOPATH $gopath
|
|
|
|
set -gx PATH $PATH $GOPATH/bin
|
|
|
|
end
|
2015-08-26 21:29:51 +00:00
|
|
|
|
2016-02-04 18:33:08 +00:00
|
|
|
# Android paths
|
2017-03-23 22:42:54 +00:00
|
|
|
if [ -d "$android_sdk" ]
|
|
|
|
set -gx ANDROID_HOME $android_sdk
|
|
|
|
set -gx PATH $PATH $android_sdk/platform-tools $android_sdk/tools
|
|
|
|
end
|
2015-06-05 19:16:12 +00:00
|
|
|
|
2016-02-04 18:33:08 +00:00
|
|
|
# Home path
|
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"
|
2017-03-23 22:42:54 +00:00
|
|
|
|
|
|
|
# FZF
|
|
|
|
set -gx FZF_DEFAULT_COMMAND 'ag -g ""'
|
|
|
|
set -gx FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND \$dir"
|
2017-04-21 20:20:23 +00:00
|
|
|
|
|
|
|
# Vim Colors so that they can be set by env
|
|
|
|
set -q VIM_COLOR; or set -gx VIM_COLOR wombat256mod
|