Advertisement
TakesxiSximada

zshrc

Dec 25th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.36 KB | None | 0 0
  1. #-*- coding: utf-8 -*-
  2. alias complete="echo 'OK'"
  3.  
  4. # zsh
  5. export HISTFILE=${HOME}/.zsh_history
  6. touch ${HISTFILE}
  7. export HISTSIZE=1000
  8. export SACEHIST=100000
  9.  
  10. setopt hist_ignore_dups
  11. setopt EXTENDED_HISTORY
  12.  
  13. # utils
  14. export PS1="$ "
  15. export GNUBIN=/usr/local/Cellar/coreutils/8.21/libexec/gnubin/
  16.  
  17. # ramdisk
  18. alias mkram="diskutil erasevolume HFS+ ramdisk `hdiutil attach -nomount ram://2097152`" # 1GB ram disk
  19.  
  20. # grep
  21. alias grep="grep --color"
  22.  
  23. # editor
  24. export EDITOR=emacs
  25.  
  26. # tmux
  27. alias tm="tmux new-session \; source-file ~/.tmux/session"
  28.  
  29. # emacs
  30. bindkey -e  # emacs style key bind
  31.   # C-p up-line-or-history
  32.   # C-r history-incremental-search-backward
  33. export USER_ID=`id -u`
  34. export EMACS_TMP_DIR="/tmp/emacs.$USER_ID"
  35. export EMACS_SOCK="$EMACS_TMP_DIR/sock"
  36. mkdir -p $EMACS_TMP_DIR
  37. alias ge="emacs -nw"
  38. alias emacsd.start="emacs --daemon"
  39. alias emacsd.stop="emacsclient -e '(progn (defun yes-or-no-p (p) t) (kill-emacs))'"
  40. alias py="ipython"
  41. alias ipy="ipython"
  42. alias cpy="python"
  43.  
  44.  
  45. # anyenv
  46. if [ -d ${HOME}/.anyenv ] ; then
  47.     export PATH="$HOME/.anyenv/bin:$PATH"
  48.     eval "$(anyenv init -)"
  49.     for D in `ls $HOME/.anyenv/envs`
  50.     do
  51.         export PATH="$HOME/.anyenv/envs/$D/shims:$PATH"
  52.     done
  53. fi
  54. export PATH=$HOME/.anyenv/envs/plenv/versions/5.21.0/bin/:$PATH
  55. export PATH=$HOME/bin:$PATH
  56.  
  57. # export PYENV_ROOT=$HOME/.pyenv
  58. # export PYENV_VERSION=`cat $HOME/.pyenv/version`
  59. # export PYENV_VERSION_BIN=$PYENV_ROOT/versions/$PYENV_VERSION/bin
  60. # export PATH=$HOME/bin:$PYENV_VERSION_BIN:$PYENV_ROOT/bin:$GNUBIN:$PATH
  61. # eval "$(pyenv init -)"
  62.  
  63. # virtualenvwrapper included
  64. # echo source $PYENV_VERSION_BIN/virtualenvwrapper.sh
  65. # source $PYENV_VERSION_BIN/virtualenvwrapper.sh
  66.  
  67. # rbenv
  68. # export PATH=$HOME/.rbenv/bin:$PATH
  69. # eval "(rbenv init -)"
  70.  
  71. # plenv
  72. # export PATH="$HOME/.plenv/bin:$PATH"
  73. # eval "$(plenv init -)"
  74.  
  75. # jenkins
  76. #alias jenkins="nohup java -jar jenkins.war > $HOME/ng/var/log/jenkins.log 2>&1"
  77. #alias py=/Users/takeshishimada/ng/var/src/altair/deploy/dev/bin/altairpy
  78. #zsh
  79.  
  80.  
  81. # ng
  82. export NG=$HOME/ng
  83. export NGHOME=${NG}/home
  84. export NGVAR=${NG}/var
  85. export NGUSR=${NG}/usr
  86. export NGOPT=${NG}/opt
  87. export NGVIRTUALENV=${NGVAR}/lib/virtualenv
  88. # export NGVIRTUALENV=${NGUSR}/virtualenv
  89.  
  90. # ssh
  91. ssh-add
  92.  
  93. # virtualenvwrapper
  94. export WORKON_HOME=$NGVIRTUALENV
  95. export PROJECT_HOME=$NGHOME
  96. mkdir -p ${WORKON_HOME} ${PROJECT_HOME}
  97. export VIRTUALENV_PATH=`pyenv which virtualenvwrapper.sh`
  98. source ${VIRTUALENV_PATH}
  99.  
  100. PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  101.  
  102. # ticketstar
  103. alias mysql-forward="ssh -N -f -L 3306:localhost:3306"
  104.  
  105. # For alshain
  106. export ALTAIR=/srv/altair/current
  107. export ALTAIR_DEPLOY=dev
  108.  
  109. # pip/buildout cache
  110. #export PIP_DOWNLOAD_CACHE=${NGVAR}/egg
  111. #export http_proxy=http://127.0.0.1:8881/
  112. #export PIP_FIND_LINKS=http://127.0.0.1:8881/
  113.  
  114. # eclipse
  115. alias eclipse="open $NGOPT/adt-bundle-mac-x86_64-20140321/eclipse/Eclipse.app"
  116.  
  117. # blender
  118. alias blender="open $NGOPT/Blender-2.7.0/blender.app"
  119.  
  120. # LightTable
  121. alias lighttable="open $NGOPT/LightTable/LightTable.app"
  122.  
  123. # homebrew
  124. PATH=$PATH:/usr/local/Cellar/gettext/0.18.3.2/bin/ # gettext
  125.  
  126.  
  127.  
  128. export DOCKER_HOST=tcp://localhost:2375
  129. alias unity="open /Applications/Unity/Unity.app/"
  130.  
  131. # zsh
  132. autoload -Uz select-word-style
  133. select-word-style default
  134. zstyle ':zle:*' word-chars " _-./;@"
  135. zstyle ':zle:*' word-style unspecified
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement