Created
July 7, 2018 10:07
-
-
Save yuq-1s/3dbdc3b8e360ae7d8a102242728dc76d to your computer and use it in GitHub Desktop.
My bash environment variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export all_proxy='socks5://127.0.0.1:1080' | |
# export ALL_PROXY='socks5://127.0.0.1:1080' | |
MUJOCO_PY_MJPRO_PATH="$HOME/.mujoco/mjpro131/bin" | |
export all_proxy='' | |
export ALL_PROXY='' | |
export PATH="$HOME/bin/:$MUJOCO_PY_MJPRO_PATH:/usr/local/cuda/bin:$PATH" | |
export MUJOCO_PATH="$HOME/bin/mjpro140" | |
# export GTEST_DIR="$HOME/lib/googletest/googletest" | |
# export GMOCK_DIR="$HOME/lib/googletest/googlemock" | |
# CAFFE_INCLUDE_DIR="$HOME/lib/caffe/include:$HOME/lib/caffe/build/include" | |
#export CPLUS_INCLUDE_PATH="$CPP_INCLUDE_PATH:$HOME/lib:/usr/local/cuda/include:$HOME/.mujoco/mjpro131/include" #:$CAFFE_INCLUDE_DIR" | |
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$HOME/lib:/usr/local/cuda/include" #:$CAFFE_INCLUDE_DIR" | |
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$MUJOCO_PATH/include" | |
export LIBRARY_PATH="$LIBRARY_PATH:$MUJOCO_PATH/bin" | |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MUJOCO_PY_MJPRO_PATH:/usr/local/cuda/lib64" | |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/lib/gps/build/lib" | |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MUJOCO_PATH/bin" | |
export PYTHONPATH="$PYTHONPATH:$HOME/lib/gps/build/lib" | |
export PYTHONPATH="$PYTHONPATH:$HOME/lib/caffe/python" | |
export PYTHONPATH="$PYTHONPATH:$HOME/lib/protobuf/python" | |
export PYTHONPATH="$PYTHONPATH:$HOME/Desktop/caffe2/build" | |
export PYTHONPATH="$PYTHONPATH:$HOME/lib1/nnvm/python" | |
export PYTHONPATH="$PYTHONPATH:$HOME/lib1/nnvm/tvm/python" | |
export ALE_INCLUDE_DIRS="$HOME/lib/ale/src" | |
# export JAVAHOME="/usr/lib/jvm/java-9-openjdk-amd64/" | |
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") | |
export ANDROID_HOME=/media/yuq/3EE23E8D544CE3AE/software/android/android-studio | |
#export ANDROID_NDK_HOME=/media/yuq/3EE23E8D544CE3AE/software/android/android-ndk-r15b | |
export ANDROID_NDK_HOME=$HOME/Desktop/android-ndk-r10e | |
export ANDROID_SDK_HOME=/media/yuq/3EE23E8D544CE3AE/software/android/sdk | |
export SOCKS5_SERVER=127.0.0.1:1080 # for socksify | |
#export ANDROID_SDK_HOME=$ANDROID_HOME/tools | |
#export ANDROID_SDK_HOME= | |
# https://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo | |
alias sudo='sudo ' | |
alias vi=vim | |
alias octave='octave --no-gui' | |
alias c1z='clang++-5.0 -std=c++1z -Wall -g' | |
alias sslocal='ss-local -s 23.105.216.64 -p 38447 -l 1081 -k "Tal<3it" -m chacha20-ietf-poly1305 -b 192.168.1.111' | |
alias captureloc='gsettings set org.gnome.gnome-screenshot auto-save-directory' | |
alias sjtu-vpn-on='charon-cmd --host stu.vpn.sjtu.edu.cn --identity zxdewr --eap-identity "zxdewr" --cert /etc/ipsec.d/certs/letsencryptauthorityx3.pem --cert /etc/ipsec.d/certs/isrgrootx1.pem.txt' | |
alias bigfiles='du -ah --max-depth 1 | sort -h | tail' | |
alias cp='cp -i' | |
alias m500g='udisksctl mount -b /dev/sdb1' | |
#alias gcc="gcc -I$CPLUS_INCLUDE_PATH" | |
#alias g++="g++ -I$CPLUS_INCLUDE_PATH" | |
# https://unix.stackexchange.com/questions/139698/why-would-curl-and-wget-result-in-a-403-forbidden | |
alias wget='wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"' | |
alias emacs='emacs -nw' | |
c() { cd "$@" && l; } | |
v () { | |
if [ -f $@ ] ;then | |
vim $@ | |
else | |
vim "$@.h" | |
fi | |
} | |
do-get-sty() { | |
missing=$(texliveonfly $@ | grep -o -P '`\w+\.sty' | tail -n1 | cut -d'`' -f 2) | |
if [[ -z $missing ]]; then | |
return 1 | |
fi | |
filename="${missing%.*}" | |
wget "http://northstar-www.dartmouth.edu/doc/texmf-dist/tex/latex/${filename,,}/$missing" | |
} | |
get-sty () { | |
while do-get-sty $@ | |
do : | |
done | |
} | |
# make texmf invisible | |
if [ -d ~/.texmf ] ; then | |
export TEXMFHOME=~/.texmf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment