forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaliases
49 lines (44 loc) · 1.25 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Unix
alias ll="ls -al"
alias ln="ln -v"
alias mkdir="mkdir -p"
alias e="$EDITOR"
alias v="$VISUAL"
# Bundler
alias b="bundle"
# Rails
alias migrate="rails db:migrate db:rollback && rake db:migrate db:test:prepare"
alias s="rspec"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# My Aliases
alias src='source ~/.zshrc'
alias f='find . -iname'
alias lines="git diff |egrep '^\+' |egrep -v '\+\+\+' |wc -l"
alias blame='git blame'
alias ms='ls -lat /var/tmp/email_* |head'
alias gagen='git add `gitgen`'
alias rmgen='rm -f `gitgen`'
alias gtsu='git status -s'
alias gitgen='gtsu | grep -E "[^AM].*generated|[^AM].*data_meta_controls" | gc'
alias rvgen='revert `gitgen`'
alias revert='git checkout HEAD'
alias ga='git add'
alias grma='git rm $(git ls-files --deleted)'
alias gi='git commit'
alias gcm='git commit -m'
alias gco='git checkout'
alias gstash='git stash'
alias pop='git stash pop'
alias show='git show'
alias log='git log'
alias gsa='git stash apply'
alias gd='git diff'
alias gss='git status'
alias gpull='git pull'
alias gb='git branch'
alias graph="git log $1 --graph --pretty=oneline --abbrev-commit"
alias mc='gd `gt|ng|nq|gmod` | c'
alias jbashrc='source ~/.bashrc'
# Include custom aliases
[[ -f ~/.aliases.local ]] && source ~/.aliases.local