Skip to content

Commit

Permalink
Local aliases and zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankemp committed Jan 23, 2014
1 parent ffb2592 commit 31d0a7a
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
70 changes: 70 additions & 0 deletions aliases.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#################
# WORKFLOW
#################
# edit devlog
alias devlog='$EDITOR ~/.todo'
# edit dotfiles
alias dots="subl ~/projects/dotfiles"
# re-source zsh config
alias reals="source ~/.zlogin && source ~/.zshrc"

#################
# GIT
#################
alias g="git"
alias gbd="git delete-branch"
alias gci="git commit"
alias gp="git push"
alias gs="git status"

# add
alias ga="git add"
alias gaa="git add -A"

# checkout
alias gco="git checkout"
alias gcob="git checkout -b"
alias gcoo="git checkout --ours"
alias gcot="git checkout --theirs"

# fetch
alias gf="git fetch"
alias gfr="git fetch-rebase-qa"
alias gfrp="git fetch-rebase-qa-push"

# gitx
alias gitx="gitx --all"

# rebase
alias grc="git rebase --continue"
alias grs="git rebase --skip"

#################
# HEROKU
#################
alias h="heroku"

#################
# UTILS
#################
alias iphone='open `xcode-select --print-path`/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
title() {
title=$*
echo -ne "\033]0;"$title"\007"
}
alias killp="lsof -i tcp:'$@' | awk 'NR!=1 {print $2}' | xargs kill"

#################
# ZEUS
#################
alias uc='zeus console'
alias ug='zeus generate'
alias ur='zeus rake'
alias us='zeus start'
alias ut='zeus test'
alias uv='zeus server'

#################
# ZSH
#################
alias ll='ls -Alh'
30 changes: 30 additions & 0 deletions zshrc.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#################
# ZSH
#################
# unset correctall
unsetopt correctall

# Set forward-slash as word delimiter
WORDCHARS=${WORDCHARS//[&=\/;!#%\{]}

# bind emacs mode
bindkey -e

# syntax highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

#################
# ENV
#################
# editor
export VISUAL='subl -w'
export EDITOR=$VISUAL

# path
export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH

# shell
export SHELL=/bin/zsh

# rbenv shim
eval "$(rbenv init - zsh)"

0 comments on commit 31d0a7a

Please sign in to comment.