2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-01 21:40:19 +00:00
steffen-dotfiles/zshrc

104 lines
2.6 KiB
Bash
Raw Normal View History

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="webgefrickel"
# 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)
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"
# paths
2012-11-13 18:28:59 +00:00
export PATH=/usr/local/bin:/usr/local/sbin:$HOME/.rvm/bin:$PATH
export MANPATH=/usr/local/share/man:$MANPATH
# disable stupid ._ and dsstore files
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
# editor
export EDITOR=vim
export VISUAL=vim
# 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
# z script installed via homebrew
. `brew --prefix`/etc/profile.d/z.sh
### aliases ##
2013-02-23 23:57:58 +00:00
# aliases for apache and mysql
alias apachestart='_ /usr/sbin/apachectl start'
alias apachestop='_ /usr/sbin/apachectl stop'
alias mysqlstart='mysql.server start'
alias mysqlstop='mysql.server stop'
2012-07-23 20:44:19 +00:00
alias dev='apachestart && mysqlstart'
alias devs='apachestop && mysqlstop'
2013-02-21 21:54:40 +00:00
alias devr='devs && dev'
# dnsflush-shortcut
alias dnsflush='_ dscacheutil -flushcache'
# all in one homebrew, gem update commands
alias brewup='brew update && brew upgrade && brew cleanup && brew linkapps'
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'
alias rvmup='rvm get latest'
2013-06-08 14:23:19 +00:00
alias upall='brewup && rvmup && gemup && npmup'
# always use mvim but for 'vim'
alias v='vim'
alias vd='vimdiff'
alias diff='vimdiff'
2013-06-06 09:32:02 +00:00
# easy hosts / apache / php editing
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'
# Easier navigation: .., ..., ~ and -
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
2013-02-23 23:57:58 +00:00
alias .....='cd ../../../..'
alias l='ls -al'
# 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'
# Gitty gitgit
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 "-"'
# dandelion deployment shortcuts
alias deploy='dandelion deploy'
alias status='dandelion status'
# grunt
alias grw='grunt watch'
alias grd='grunt deploy'
# 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'
# rvm ftw!
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"