2012-08-26 17:07:30 +00:00
|
|
|
# Path to your oh-my-zsh configuration.
|
|
|
|
ZSH=$HOME/.oh-my-zsh
|
|
|
|
ZSH_THEME="webgefrickel"
|
|
|
|
|
2012-09-09 09:42:27 +00:00
|
|
|
# default plugins to load
|
2013-02-23 23:57:58 +00:00
|
|
|
plugins=(brew extract git github history-substring-search jake-node npm node gem osx zsh-syntax-highlighting)
|
2012-09-09 09:42:27 +00:00
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
unsetopt correct_all
|
|
|
|
|
2013-05-14 17:32:05 +00:00
|
|
|
# Terminal
|
|
|
|
export TERM="screen-256color"
|
|
|
|
|
2013-06-06 09:32:02 +00:00
|
|
|
# brew CASK
|
|
|
|
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
|
|
|
|
|
2012-09-09 09:42:27 +00:00
|
|
|
# paths
|
2012-11-13 18:28:59 +00:00
|
|
|
export PATH=/usr/local/bin:/usr/local/sbin:$HOME/.rvm/bin:$PATH
|
2012-09-09 09:42:27 +00:00
|
|
|
export MANPATH=/usr/local/share/man:$MANPATH
|
|
|
|
|
|
|
|
# disable stupid ._ and dsstore files
|
|
|
|
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
|
|
|
|
export COPYFILE_DISABLE=true
|
|
|
|
|
|
|
|
# editor
|
2012-10-09 17:05:32 +00:00
|
|
|
export EDITOR=vim
|
|
|
|
export VISUAL=vim
|
2012-09-09 09:42:27 +00:00
|
|
|
|
|
|
|
# node.js
|
|
|
|
export NODE_PATH=/usr/local/lib/jsctags/:$NODE_PATH
|
|
|
|
|
2012-09-22 17:54:43 +00:00
|
|
|
# disable auto titling fixes tmux window
|
|
|
|
export DISABLE_AUTO_TITLE=true
|
|
|
|
|
2012-10-09 17:05:32 +00:00
|
|
|
# z script installed via homebrew
|
|
|
|
. `brew --prefix`/etc/profile.d/z.sh
|
|
|
|
|
2012-08-26 17:07:30 +00:00
|
|
|
### aliases ##
|
2013-02-23 23:57:58 +00:00
|
|
|
|
2012-08-26 17:07:30 +00:00
|
|
|
# aliases for apache and mysql
|
|
|
|
alias apachestart='_ /usr/sbin/apachectl start'
|
|
|
|
alias apachestop='_ /usr/sbin/apachectl stop'
|
2012-05-28 14:38:01 +00:00
|
|
|
alias mysqlstart='mysql.server start'
|
|
|
|
alias mysqlstop='mysql.server stop'
|
2012-07-23 20:44:19 +00:00
|
|
|
alias dev='apachestart && mysqlstart'
|
2012-07-02 10:19:54 +00:00
|
|
|
alias devs='apachestop && mysqlstop'
|
2013-02-21 21:54:40 +00:00
|
|
|
alias devr='devs && dev'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
|
|
|
# dnsflush-shortcut
|
2012-08-26 17:07:30 +00:00
|
|
|
alias dnsflush='_ dscacheutil -flushcache'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
2013-05-12 19:32:27 +00:00
|
|
|
# all in one homebrew, gem update commands
|
2012-05-28 14:38:01 +00:00
|
|
|
alias brewup='brew update && brew upgrade && brew cleanup && brew linkapps'
|
2012-08-26 17:07:30 +00:00
|
|
|
alias gemup='gem update --system && gem update && gem cleanup'
|
2012-07-08 11:55:18 +00:00
|
|
|
alias npmup='npm -g cache clean && npm -g update'
|
2012-08-26 17:07:30 +00:00
|
|
|
alias rvmup='rvm get latest'
|
2013-06-08 14:23:19 +00:00
|
|
|
alias upall='brewup && rvmup && gemup && npmup'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
2012-09-20 12:18:56 +00:00
|
|
|
# always use mvim but for 'vim'
|
2012-10-09 17:05:32 +00:00
|
|
|
alias v='vim'
|
|
|
|
alias vd='vimdiff'
|
|
|
|
alias diff='vimdiff'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
2013-06-06 09:32:02 +00:00
|
|
|
# easy hosts / apache / php editing
|
2012-10-09 17:05:32 +00:00
|
|
|
alias hosts='_ vim /etc/hosts'
|
|
|
|
alias vhosts='_ vim /etc/apache2/extra/httpd-vhosts.conf'
|
2013-06-06 09:32:02 +00:00
|
|
|
alias phpini='vim /usr/local/etc/php/5.4/php.ini'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
|
|
|
# Easier navigation: .., ..., ~ and -
|
|
|
|
alias ..='cd ..'
|
|
|
|
alias ...='cd ../..'
|
2012-08-26 17:07:30 +00:00
|
|
|
alias ....='cd ../../..'
|
2013-02-23 23:57:58 +00:00
|
|
|
alias .....='cd ../../../..'
|
2013-05-16 15:23:35 +00:00
|
|
|
alias l='ls -al'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
|
|
|
# Shortcuts
|
2013-02-23 23:57:58 +00:00
|
|
|
alias drop='cd ~/Dropbox && ls -al'
|
|
|
|
alias web='cd ~/Sites && ls -al'
|
|
|
|
alias rep='cd ~/Repositories && ls -al'
|
|
|
|
alias dot='cd ~/Dotfiles && ls -al'
|
2012-11-27 22:41:10 +00:00
|
|
|
alias brain='cd ~/Dropbox/Brain && vim .'
|
2013-01-21 12:06:41 +00:00
|
|
|
alias jake='noglob jake'
|
2012-05-28 14:38:01 +00:00
|
|
|
|
|
|
|
# Gitty gitgit
|
2012-08-26 17:07:30 +00:00
|
|
|
alias gitrm='git rm $(git ls-files --deleted)'
|
2013-01-23 18:55:49 +00:00
|
|
|
# THIS is evil. only use for private stuff and useless stuff
|
2013-02-23 23:57:58 +00:00
|
|
|
# squish those commits afterwards with rebase!
|
2013-01-23 18:55:49 +00:00
|
|
|
alias ggg='git add . && git commit -a -m "-"'
|
2012-08-26 17:07:30 +00:00
|
|
|
|
|
|
|
# dandelion deployment shortcuts
|
2012-05-28 14:38:01 +00:00
|
|
|
alias deploy='dandelion deploy'
|
|
|
|
alias status='dandelion status'
|
2012-07-02 10:19:54 +00:00
|
|
|
|
2012-08-26 17:07:30 +00:00
|
|
|
# grunt
|
|
|
|
alias grw='grunt watch'
|
|
|
|
alias grd='grunt deploy'
|
2012-09-06 18:28:31 +00:00
|
|
|
|
|
|
|
# other tools
|
2013-05-14 17:32:05 +00:00
|
|
|
alias t='tmux -u -2'
|
2013-01-23 18:55:49 +00:00
|
|
|
alias ta='tmux attach'
|
2012-08-26 17:07:30 +00:00
|
|
|
|
2012-05-28 14:38:01 +00:00
|
|
|
# rvm ftw!
|
|
|
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|