-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
64 lines (58 loc) · 1.88 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
53
54
55
56
57
58
59
60
61
62
63
64
# General
alias dc='docker-compose '
alias dotfiles='cd $HOME/repositories/dotfiles'
alias flush='killall -HUP mDNSResponder'
alias gpg-reset='gpgconf --kill gpg-agent'
alias hbu='git commit -m "Homebrew update"'
alias hrg='history | rg'
alias sudo='sudo ' # Allows aliases to be sudo'd
alias ugh='killall ControlStrip'
alias watch='watch ' # Allows watch to work with aliases, e.g. 'watch kgpo'
# Hiding and showing files in Finder
alias shf="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hhf="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Directory-related
alias l='ls -lah'
# Git
alias g='git'
alias ga='git add'
alias gbr='git branch'
alias gbrd='git branch -d'
alias gci='git commit'
alias gcim='git commit -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gd='git diff'
alias gds='git diff --staged'
alias glg='git log --stat'
alias glog='git log --oneline --decorate --graph'
alias gp='git push'
alias gpo='git push origin'
alias goops='git commit --amend --no-edit && git push --force-with-lease'
alias gst='git status'
# Kubernetes (ones not defined in the oh-my-zsh plugin)
alias k8s-ns='kubectl config set-context --current --namespace'
alias kdpo='kubectl describe pods'
alias kdsvc='kubectl describe svc'
alias kepo='kubectl edit pods'
alias kesvc='kubectl edit svc'
alias kgdyaml='kubectl get deployment -o yaml'
alias kgnsyaml='kubectl get ns -o yaml'
alias kgpo='kubectl get pods'
alias kgpoyaml='kubectl get pods -o yaml'
alias kgss='kubectl get statefulset'
alias kgssy='kubectl get statefulset -o yaml'
alias kgsvc='kubectl get svc'
alias kgsvcyaml='kubectl get svc -o yaml'
# note
alias n='note'
alias nn='note new'
alias no='note open'
alias nl='note list'
alias nrm='note rm'
alias nmv='note mv'
alias ncat='note cat'
alias ndir='note dir'
# Ruby
alias be='bundle exec '
alias ber='bundle exec rspec '