From 94db0d5a8a4741e87b35eef6d42330c9680b80c8 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 4 Jan 2015 09:17:10 +0100 Subject: [PATCH] cleanup commonshrc --- commonshrc | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/commonshrc b/commonshrc index 177f274..6db6e85 100644 --- a/commonshrc +++ b/commonshrc @@ -20,28 +20,15 @@ add_myprefix_to() { export MYPREFIX=$HOME/.local -add_to PATH /sbin -add_to PATH /usr/sbin -add_to PATH /usr/local/sbin - add_to PATH ~/.cabal/bin add_myprefix_to LD_LIBRARY_PATH lib -add_myprefix_to LD_LIBRARY_PATH lib64 add_to MANPATH : add_myprefix_to MANPATH share/man add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig -#add_myprefix_to PYTHONPATH lib/python2.7/site-packages -#add_myprefix_to PYTHONPATH lib/python/site-packages -#add_myprefix_to PYTHONPATH lib/python - -for ruby_gem_path in ~/.gem/ruby/*/bin; do - add_to PATH $ruby_gem_path -done - add_myprefix_to PATH bin add_myprefix_to PATH sbin @@ -53,13 +40,16 @@ fi add_myprefix_to R_LIBS lib/R:/usr/lib/R/site-library -export ANDROID_HOME=$HOME/build/android-sdk-linux -add_to PATH $ANDROID_HOME/platform-tools:$ANDROID_HOME/tools -export ANDROID_SDK=$ANDROID_HOME ANDROID_NDK=$HOME/build/android-ndk-r9c +if [ -d ~/build/android-sdk-linux ]; then + export ANDROID_HOME=$HOME/build/android-sdk-linux + add_to PATH $ANDROID_HOME/platform-tools:$ANDROID_HOME/tools + export ANDROID_SDK=$ANDROID_HOME ANDROID_NDK=$HOME/build/android-ndk-r9c +fi add_to PATH ~/.babel/bin # nimrod package manager -add_to PATH /opt/ghc/7.8.2/bin +add_to PATH /opt/ghc/7.8.3/bin +add_to PATH ~/.gem/ruby/2.1.0/bin # Customisation of Programs {{{1 alias ls='ls --color=auto' @@ -75,6 +65,3 @@ test -x /usr/bin/vim && alias vi=vim passc() { pass show "$1" | (read i; cat; echo -n "$i" | xclip -l 1 -se c) } - - -add_to PATH /opt/ghc/7.8.3/bin