forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffb2592
commit 31d0a7a
Showing
2 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |