Skip to content

Instantly share code, notes, and snippets.

@3panda
Last active January 1, 2016 22:19
Show Gist options
  • Save 3panda/8209499 to your computer and use it in GitHub Desktop.
Save 3panda/8209499 to your computer and use it in GitHub Desktop.
.zshrcの設定
##$PATH
export PATH=/usr/local/bin/zsh:$PATH
## 重複パスを登録しない
typeset -U path cdpath fpath manpath
## sudo用のpathを設定
typeset -xT SUDO_PATH sudo_path
typeset -U sudo_path
sudo_path=({/usr/local,/usr,}/sbin(N-/))
## pathを設定
path=(~/bin(N-/) /usr/local/bin(N-/) ${path})
##Ruby
#export PATH="$HOME/.rbenv/bin:$PATH"
#eval "$(rbenv init -)"
export CC=/usr/bin/gcc
#Node
export PATH=$HOME/.nodebrew/current/bin:$PATH
##alias
alias chrome='open -a Google\ Chrome'
alias safari='open -a Safari'
alias mvim='open -a MacVim'
### Added by the Heroku Toolbelt
#export PATH="/usr/local/heroku/bin:$PATH"
##Terminal - Open files from applications - in the current window
case ${OSTYPE} in
darwin*) # Mac OS X
function macvim () {
if [ -d /Applications/MacVim.app ]
then
[ ! -f $1 ] && touch $1
open -a MacVim $1
else
vim $1
fi
}
alias vim='macvim'
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment