-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
63 lines (48 loc) · 1.64 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
#!/usr/bin/env bash
alias gp='git pull'
alias -g G='| grep'
alias -g C='| code -'
alias -g CC='| pbcopy'
alias -s {ape,avi,flv,m4a,mkv,mov,mp3,mp4,mpeg,mpg,ogg,ogm,wav,webm}=open
alias -s git="git clone --depth 1 "
alias p='python'
alias d='docker'
alias dc='docker compose'
alias dcu='docker compose up'
alias docker-compose='docker compose'
# K8s aliases
alias k='kubectl'
alias ks='kubectx -c; kubens -c'
alias kp='kube-prompt'
alias kgp='k get pods'
alias kkk='k get pods'
alias kkkk='k get pods -w'
alias kga='k get all'
alias kd='k describe'
alias kns='kubens'
alias hf='helmfile'
alias grun='./gradlew run'
alias gw='./gradlew'
alias erc='code ~/dev/dotfiles'
alias src='source ~/.zshrc'
alias pm='python manage.py'
alias serve='python3 -m http.server'
alias ls='ls -la'
alias pf='lsof -i -P | grep '
alias nrd='npm run dev'
alias yd='yarn dev'
alias ya='yarn add'
alias yad='yarn add -D'
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
# Show active network interfaces
alias ifactive="ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active'"
# Canonical hex dump; some systems have this symlinked
command -v hd > /dev/null || alias hd="hexdump -C"
# macOS has no `md5sum`, so use `md5` as a fallback
command -v md5sum > /dev/null || alias md5sum="md5"
# macOS has no `sha1sum`, so use `shasum` as a fallback
command -v sha1sum > /dev/null || alias sha1sum="shasum"
alias brow='arch --x86_64 /usr/local/Homebrew/bin/brew'