-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
33 lines (33 loc) · 1.79 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
#!/usr/bin/env zsh
alias bpc='backend production console'
alias bps='backend production shell'
alias bx='bundle exec'
alias catnap='pmset displaysleepnow; sleep 5; caffeinate -u -t 1'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias derp='git add --all; git commit --amend --no-edit; git push -f'
alias develop='git fetch; git checkout develop; git pull'
alias dock='docker-compose'
alias dx='docker-compose exec'
alias dxa='docker-compose exec app'
alias garbo='git checkout develop && git pull && git checkout - && git rebase develop'
alias gdcb='LAST_GIT_BRANCH=$(git branch --show-current); git checkout develop; git pull; git branch -D $LAST_GIT_BRANCH'
alias gds='git diff --staged'
alias gfp='git push --force'
alias gpf='git push --force'
alias gpfo='git push --force origin'
alias gpo='git push origin'
alias jib='jira_branch'
alias main='git fetch; git checkout main; git pull'
alias master='git fetch; git checkout master; git pull'
alias rebuild='git commit --allow-empty -m "Rebuild" && git push'
alias regen-rubocop-todo='rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 1000'
alias simp="find . -type f -name '*.rb' -print0 | xargs -0 sed -i '' -e"
alias shipit="git fetch && git checkout master && git pull && git push origin master:production"
alias smoke='bundle exec rake'
alias tap='tmux attach -t "${PWD##*/}" || tmux new-session -s "${PWD##*/}"'
alias tnp='tmux new-session -s "${PWD##*/}"\; split-window -h -p 66\; split-window -h -p 50\; split-window -v -p 66\; split-window -v -p 50'
alias today='ruby -e "require \"date\"; puts Date.today"'
alias wip="git add --all && git commit -m wip && git push"
alias wka='who-knows-about'
alias whatamidoing='jira_branch $(git rev-parse --abbrev-ref HEAD)'
alias uuid='ruby -e "require \"securerandom\"; puts SecureRandom.uuid"'