-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
47 lines (40 loc) · 1.47 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
# vim: set ft=sh:
alias gclone='git clone'
alias gs='git status'
alias gst='git stash'
alias gstp='git stash pop'
alias gsta='git stash apply'
alias ga='git add'
alias gaa='git add -A'
alias gam='git ls-files --modified | xargs git add' # git add modified files only
alias gcom='git checkout master'
alias gr='git rebase'
alias gra='git rebase --abort'
alias grc='git rebase --continue'
alias gri='git rebase --interactive --autosquash'
alias grom='git rebase origin/master'
alias glo='git log --oneline'
alias gb='git blame -M -w'
alias gd='git diff'
alias gf='git fetch'
alias gc='git commit'
alias gcm='git commit -m'
alias gcf='git commit --fixup'
alias gp='git push'
alias gpull='git pull'
alias gbclear="git fetch --all --prune; git branch --merged origin/master | grep -v \"\\*\" | grep -v \"\\ master\" | xargs -n 1 git branch -d"
alias gpristine='git reset --hard && git clean -df'
alias gre='git reset'
alias gcherry='git cherry pick'
alias cbranch='git rev-parse --abbrev-ref HEAD'
alias vim=nvim
alias be='bundle exec'
alias berrspec='bundle exec rubocop && bundle exec rspec'
alias rebocop='git diff-tree -r --no-commit-id --name-only HEAD | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs bundle exec rubocop'
alias ssstart='sudo systemctl start'
alias ssstop='sudo systemctl stop'
alias doc=docker
alias docom=docker-compose
alias migrate="bundle exec rake db:migrate db:rollback && bundle exec rake db:migrate db:test:prepare"
alias mux=tmuxinator
alias editd="cd ~/dotfiles && vim ."