etc/nonnixshellrc

40 lines
759 B
Plaintext
Raw Normal View History

2015-05-27 18:56:03 +02:00
# Copyright (C) 2011 Gabriel Ebner
# vim:fdm=marker ft=sh:
# $MYPREFIX {{{1
add_to() {
2024-08-10 19:07:28 +02:00
if [ -n "${!1}" ]; then
export $1="$2:${!1}"
2015-05-27 18:56:03 +02:00
else
export $1="$2"
fi
}
add_myprefix_to() {
add_to "$1" "$MYPREFIX/$2"
}
2024-08-10 19:07:28 +02:00
MYPREFIX=$HOME/.local
2015-05-27 18:56:03 +02:00
add_to PATH ~/.cabal/bin
add_myprefix_to LD_LIBRARY_PATH lib
2024-08-14 03:25:05 +02:00
if [ -z "$MANPATH" ]; then
export MANPATH="$MYPREFIX/share/man:"
else
add_myprefix_to MANPATH share/man
fi
2015-05-27 18:56:03 +02:00
add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig
add_myprefix_to PATH bin
add_myprefix_to PATH sbin
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