-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliases
214 lines (193 loc) · 5.94 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
#!/bin/bash
# brew
alias b="brew"
alias bc="brew cleanup"
alias bd="brew doctor"
alias bh="brew help"
alias bi="brew install"
alias bic="brew install --cask"
alias bl="brew list"
alias blg="brew list | grep"
alias bs="brew services"
alias bt="brew tap"
alias bu="brew uninstall"
alias buc="brew uninstall --cask"
alias buu="brew update && brew upgrade && brew cleanup"
# browser
SE_DOCUMENTS="$HOME/Library/Mobile\ Documents/com~apple~ScriptEditor2/Documents"
alias dbb="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.brave.Browser"
alias dbbn="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.brave.Browser.nightly"
alias dbc="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.google.Chrome"
alias dbcc="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.google.Chrome.canary"
alias dbs="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.apple.Safari"
alias dbsp="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt com.apple.SafariTechnologyPreview"
alias dbf="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt org.mozilla.firefox"
alias dbfn="osascript $SE_DOCUMENTS/Set\ Default\ Browser.scpt org.mozilla.nightly"
alias obb="open $SE_DOCUMENTS/Brave\ Browser\ Private.app"
alias obc="open $SE_DOCUMENTS/Google\ Chrome\ Incognito.app"
# composer
alias c="composer"
alias cda="composer dump-autoload"
alias cg="composer global"
alias ci="composer install"
alias co="composer outdated"
alias cr="composer require"
alias cu="composer uninstall"
alias cv="composer --version"
# directory
alias cd-="cd -"
alias cd..="cd .."
alias ll="ls -lah --color=auto"
alias lsg="ls -lah | grep"
alias o="open ."
# docker
alias d="docker"
alias dbt="docker build -t"
alias dc="docker compose"
alias dcb="docker compose build"
alias dcd="docker compose down"
alias dce="docker compose exec"
alias dcl="docker ps"
alias dcr="docker compose restart"
alias dcrr="docker compose run --rm"
alias dcu="docker compose up"
alias dcud="docker compose up -d"
alias dcw="docker compose watch"
alias dex="docker exec -it"
alias dil="docker image ls"
alias dir="docker image rm"
alias dk="docker kill"
alias dnl="docker network ls"
alias dnr="docker network rm"
alias dp="docker push"
alias drp="docker run -p"
alias ds="docker stop"
alias dsp="docker system prune"
alias dvl="docker volume ls"
alias dvr="docker volume rm"
# git
alias ga="git add ."
alias gb="git branch"
alias gc-="git checkout -"
alias gc.="git checkout ."
alias gc="git commit"
alias gca="git commit -n --amend --no-edit"
alias gcb="git checkout -b"
alias gcd="git checkout development"
alias gcf="git clean -f"
alias gcm="git checkout main"
alias gcp="git checkout -"
alias gd="git diff"
alias gfo="git fetch origin"
alias gfp="git push --force-with-lease"
alias gl="git log --graph --oneline --decorate"
alias gm="git merge"
alias gma="git merge --abort"
alias gp="git pull"
alias gra="git rebase --abort"
alias grc="git rebase --continue"
alias gri="git rebase -i"
alias grh="git reset --hard"
alias gs="git status"
alias gsc="git stash clear"
alias gsd="git stash drop"
alias gsl="git stash list"
alias gsp="git stash pop"
# golang
alias gbo="go build -o"
alias gmt="go mod tidy"
alias gr.="go run ."
alias grr.="go run -race ."
alias grm="go run main.go"
# grep
alias grep="grep --color=auto"
# helm
alias h="helm"
alias hc="helm create"
alias hg="helm get"
alias hi="helm install"
alias hid="helm install --debug --dry-run"
alias hl="helm lint"
alias hp="helm package"
alias hs="helm search"
alias ht="helm template"
alias hu="helm uninstall"
# ip
alias ip="ifconfig -l | xargs -n1 ipconfig getifaddr"
alias ip4="dig @resolver1.opendns.com A myip.opendns.com +short -4"
alias ip6="dig @resolver1.opendns.com AAAA myip.opendns.com +short -6"
# kubernetes
alias k="kubectl"
alias kaf="kubectl apply -f"
alias kcc='kubectl config use-context "$(klc | fzf -e | sed "s/^..//")"'
alias kcn='kubectl config set-context --current --namespace "$(kln | fzf -e | sed "s/^..//")"'
alias kex="kubectl exec -it"
alias kga="kubectl get all --all-namespaces"
alias klc='kubectl config get-contexts -o name | sed "s/^/ /;\|^ $(krc)$|s/ /*/"'
alias kln='kubectl get -o name ns | sed "s|^.*/| |;\|^ $(krn)$|s/ /*/"'
alias ko='kubernetes_context_and_namespace'
alias kpf="kubectl port-forward"
alias krc="kubectl config current-context"
alias krn='kubectl config get-contexts --no-headers "$(krc)" | awk "{print \$5}" | sed "s/^$/default/"'
alias ksr='kubectl scale --replicas'
# minikube
alias mk="minikube"
alias mka="minikube addons"
alias mks="minikube service"
# neovim
alias vim="nvim"
# node
alias nv="node -v"
# npm
alias naf="npm audit fix"
alias ncc="npm cache clean --force"
alias ng="npm list --global --depth=0"
alias nh="npm home"
alias ni="npm install"
alias nid="npm install --save-dev"
alias nig="npm install --global"
alias no="npm outdated"
alias nr="npm repo"
alias nrb="npm run build"
alias nrd="npm run dev"
alias nrl="npm run lint"
alias nrp="npm run prod"
alias nrs="npm run serve"
alias nrsb="npm run ssr:build"
alias nrss="npm run ssr:serve"
alias nrst="npm run start"
alias nrt="npm run test"
alias nrw="npm run watch"
# php
alias pa="php artisan"
alias pamc="php artisan make:component"
alias pamm="php artisan make:model"
alias pams="php artisan make:seeder"
alias pamt="php artisan make:test"
alias pasi="php artisan sail:install"
alias pat="php artisan test"
alias pv="php --version"
# sail
alias sail="[ -f sail ] && bash sail || bash ./vendor/bin/sail"
# sublime text
alias sta="st ~/.dotfiles/.aliases"
alias stc="st ~/.ssh/config"
alias ste="st ~/.dotfiles/.exports"
alias stf="st ~/.dotfiles/.functions"
alias sth="st /etc/hosts"
alias stk="st ~/.ssh/known_hosts"
alias stq="st ~/.quokka/config.json"
alias sts="st /etc/shells"
alias stz="st ~/.dotfiles/.zshrc"
alias stzh="st ~/.zsh_history"
alias stzp="st ~/.zprofile"
# terraform
alias tf="terraform"
# vscode
alias vs="open . -a \"Visual Studio Code\""
alias vsd="open ~/.dotfiles -a \"Visual Studio Code\""
# yarn
alias yb="yarn build"
alias yd="yarn dev"
alias yg="yarn global list"
alias ys="yarn serve"