-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases
52 lines (45 loc) · 1.36 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
50
51
52
# Navigate easier through parent directories
alias -g ...='../..'
alias -g ....='../../../'
alias -g .....='../../../..'
# System
alias grep='grep --color=auto --exclude-dir=.git'
alias ls='ls -G'
alias l='ls -lAh'
# Git
alias gs='git status'
alias gss='git status --short'
alias gpl='git pull'
alias gplr='git pull --rebase'
alias gps='git push'
alias ga='git add'
alias gap='git add --patch'
alias gc='git commit'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gst='git stash'
alias gstp='git stash pop'
alias gstl='git stash list'
alias gd='git diff'
alias glps='git pretty -n 10'
alias glpg='git pretty --graph'
# Kubernetes
alias k='kubectl'
# Ruby
alias b='bundle'
alias be='bundle exec'
alias ber='bundle exec rspec'
alias berm='bundle exec rails db:migrate && RAILS_ENV=test bundle exec rails db:migrate'
alias berr='bundle exec rails db:rollback && RAILS_ENV=test bundle exec rails db:rollback'
# Handy commands
alias reload='. ~/.zshrc'
alias path='echo $PATH | tr -s ":" "\n"'
alias brup='brew update && brew upgrade --display-times && brew doctor'
alias newest-dir='ls -ld *(/om[1])'
alias modified-today='print *(e:age today now:)'
alias top-commands='print -l -- ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
alias r='history | grep'
# Tiqets aliases
# . ~/.dotfiles/projects/tiqets/aliases
# WeTransfer aliases
. ~/.dotfiles/projects/wetransfer/aliases