Skip to content

Instantly share code, notes, and snippets.

@luginbash
Created July 21, 2014 01:53
Show Gist options
  • Save luginbash/bd04e38af34ad15ffe83 to your computer and use it in GitHub Desktop.
Save luginbash/bd04e38af34ad15ffe83 to your computer and use it in GitHub Desktop.
~/.zshrc
# GNU/Octave 3.8.0
alias octave='/usr/local/octave/3.8.0/bin/octave-3.8.0'
# change editor to use sublime
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
export PATH="/Users/qzhou/anaconda/bin:$PATH"
# Settings for FSL 5.0.6
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
setopt rmstarsilent # no more prompts in rm
# Haskell
export PATH="$HOME/Library/Haskell/bin:$PATH"
# misc
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export PATH=/usr/local/sbin:$PATH
export PATH=/Developer/NVIDIA/CUDA-6.0/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-6.0/lib:$DYLD_LIBRARY_PATH
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