Permalink
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (76 sloc) 2.17 KB
# lazy
alias v="nvim"
alias f="fg"
alias l="ls"
alias ..="builtin cd .."
alias a="atom-beta --clear-window-state $1"
# misc
alias slrn="slrn -n"
alias man="LC_ALL=C LANG=C man"
alias ll="ls -al"
alias ls="ls -G"
# bundle and ruby rails stuff
alias be="bundle exec"
# git alises
alias ga="git add"
alias gaa="git aa"
alias gap="git add -p"
alias gbs="git branch | cut -c 3- | selecta | xargs git checkout"
alias gci="git ci"
alias gcm="echo 'use gci please!'"
alias gco="git co"
alias gcom="git co master"
alias gcomp="git co master && git pull"
alias gcob="git co -b"
alias gd="git diff"
alias gds="git diff --staged"
alias gl="git log --pretty=format:\"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" --abbrev-commit"
alias gpu="git push"
alias gpcb='git push origin $(git rev-parse --abbrev-ref HEAD)'
alias grm="git rm"
alias grh="git reset HEAD"
alias gput="git push --tags"
alias gpl="git pull"
alias gt="git tag"
alias gnrt="git-new-remote-tracking"
alias hpr="hub pull-request"
alias hb="hub browse"
alias hc="hub compare"
alias gca="git commit --amend"
alias gcan="git commit --amend --no-edit"
alias gsp="git stash pop"
# npm
alias n="node"
alias ni="npm install"
alias nis="npm install --save"
alias nisd="npm install --save-dev"
alias nig="npm install -g"
alias nl="npm link"
alias nr="npm run"
alias nt="npm test"
alias ns="npm start"
# karma
alias ks="karma start --no-auto-watch --no-single-run"
alias kr="karma run"
# dotfiles
alias df="cd ~/dotfiles"
alias srcz="source ~/.zshrc"
# tmux
alias tls="tmux ls"
alias td="tmux detach"
alias tnew="echo use tat!!"
alias tat="new-tmux-from-dir-name"
# rails
alias rup="git pull && (bundle check || bundle install) && rake db:migrate db:test:prepare"
alias sprung="spring stop"
alias springstub="bundle exec spring binstub --all"
alias updev="git checkout dev && git pull origin dev && rup"
alias kill-last-bg="kill -9 %1"
# python
alias newvenv="virtualenv .venv && source .venv/bin/activate"
# highlight pasting
# https://gist.github.com/jimbojsb/1630790
alias jshigh="pbpaste | highlight --syntax=js -O rtf | pbcopy"
#Elm
alias epi="elm package install"
# alias mvim="/Applications/MacVim.app/Contents/MacOS/Vim"