Created
October 17, 2014 08:15
-
-
Save luginbash/0b3933a52330b39caa44 to your computer and use it in GitHub Desktop.
shell profile
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
# Global | |
setopt no_nomatch # if there are no matches for globs, leave them alone and execute the command | |
setopt no_cdable_vars # don't use named directories in cd autocompletion | |
setopt rmstarsilent # no more prompts in rm | |
# Intel ICC | |
PATH="/opt/intel/composerxe/bin:$PATH" | |
export PATH | |
#tauu | |
# do not remove these lines! | |
# uninstall may not work if modified | |
PATH="$PATH:/applications/tau/tau/apple/bin" | |
export PATH | |
# end modification | |
#tauend | |
# Google Say - Google TTS Command line | |
function gSay { | |
wget -q -U Mozilla -O "$1.mp3" "http://translate.google.com/translate_tts?tl=zh&ie=UTF-8&q=$2" | |
} | |
function unset_proxy { | |
unset http_proxy | |
unset HTTPS_PROXY | |
} | |
# change editor to use lime | |
export EDITOR=lime | |
export VISUAL=lime | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
alias lx="python /usr/local/xunlei-lixian/lixian_cli.py" | |
# anaconda python | |
export PATH="/Users/qzhou/anaconda/bin:$PATH" | |
# Setting PATH for Python 3.4 | |
# The orginal version is saved in .bash_profile.pysave | |
#PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}" | |
# export PATH | |
# Settings for FSL | |
PATH="/usr/local/fsl/bin:${PATH}" | |
export PATH | |
FSLDIR="/usr/local/fsl" | |
export FSLDIR | |
if [[ -s "${FSLDIR}/etc/fslconf/fsl.sh" ]]; then | |
source "${FSLDIR}/etc/fslconf/fsl.sh" | |
fi | |
# Settings for Matlab r2014a | |
## Retinizer | |
export MATLAB_JAVA="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" | |
## PATH | |
PATH="/Applications/MATLAB_R2014a.app/bin:${PATH}" | |
export PATH | |
# Haskell | |
export PATH="$HOME/Library/Haskell/bin:$PATH" | |
# misc | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export PATH=/Developer/NVIDIA/CUDA-6.5/bin:$PATH | |
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-6.5/lib:$DYLD_LIBRARY_PATH | |
# goodies | |
alias flushdns='dscacheutil -flushcache' | |
function ff { osascript -e 'tell application "Finder"'\ | |
-e "if (${1-1} <= (count Finder windows)) then"\ | |
-e "get POSIX path of (target of window ${1-1} as alias)"\ | |
-e 'else' -e 'get POSIX path of (desktop as alias)'\ | |
-e 'end if' -e 'end tell'; };\ | |
function cdff { cd "`ff $@`"; }; | |
alias ll='ls -lGA' | |
alias ls='ls -GF ' # add colors for filetype recognition | |
alias lc='ls -ltcr' # sort by and show change time, most recent last | |
alias lu='ls -ltur' # sort by and show access time, most recent last | |
alias lt='ls -ltr' # sort by date, most recent last | |
alias lm='ls -al |less' # pipe through 'more' | |
alias lr='ls -lR' # recursive ls | |
alias tree='tree -Csu' # nice alternative to 'recursive ls' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment