-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.shell_aliases
41 lines (33 loc) · 1.35 KB
/
.shell_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
alias diff="colordiff --side-by-side --suppress-common-lines"
alias dbox="dropbox.py"
# docker aliases
alias docker_stop_containers='docker stop $(docker ps -a -q)'
alias docker_kill_containers='docker kill $(docker ps -q)'
alias docker_rm_containers='docker rm $(docker ps -a -q)'
alias docker_rm_images='docker rmi $(docker images -q)'
alias docker_purge_system='docker system prune --all --force --volumes'
alias fd="fd --hidden"
alias findforks="find . -type f -exec test -s {}/..namedfork/rsrc \; -print"
alias find_zombies="ps axo stat,ppid,pid,comm | grep -w defunct"
# git aliases
alias gitvdiff="git difftool -t tkdiff --no-prompt"
alias h="history"
alias hg="history | grep"
# k8s aliases
alias k="kubectl"
alias kes="kubectl exec --stdin --tty"
alias k_print_configmap="kubectl get configmap $1 -o jsonpath=\"{.data}\""
alias less="less -i --shift 2 --RAW-CONTROL-CHARS"
alias lessc="less -i --chop-long-lines --shift 2 --RAW-CONTROL-CHARS"
alias la="lsd -a"
alias ls="lsd"
alias mdv="$HOME/.terminal_markdown_viewer/mdv.py"
alias mysql.start="/opt/local/share/mysql5/mysql/mysql.server"
alias psg="ps aux | grep"
alias rg="rg --hidden --pretty --sort path"
alias sort_latest='find . -type f -exec stat --format "%Y - %y --> %n" "{}" \; | sort -n'
alias tree="tree --dirsfirst"
alias vi="nvim"
alias vim="nvim"
# https://github.com/google/zx
alias zx="npx zx"