-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zsh_aliases
47 lines (42 loc) · 1.21 KB
/
.zsh_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
case "$(uname -s)" in
Linux*)
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
alias rm='rm --preserve-root -i'
;;
Darwin*)
# needs gnu coreutils
alias ls='gls'
alias rm='rm -i'
;;
esac
alias cd..='cd ..'
alias cd...='cd ../..'
alias ..='cd ..'
alias ...='cd ../..'
alias r='cd -'
alias ll='ls -lAhF --group-directories-first'
alias sl='ls'
alias lsl='ls -lAhF | less'
alias mkdir='mkdir -pv'
alias weather='curl wttr.in/'
alias wl='wc -l'
alias cl='clear'
alias wget='wget -c'
alias hist='history | grep'
alias myip='curl https://ipecho.net/plain; echo'
alias c.='code .'
alias d='docker'
alias dr='docker run --rm -i -t'
alias db='docker build -t'
alias dx='docker exec -i -t'
alias dp='docker ps'
alias dpa='docker ps -a'
alias dockerclean='docker system prune --all --force --volumes'
alias dcup='find ~/docker -maxdepth 2 -type f -name "docker-compose.yml" -exec sh -c '\''cd "$(dirname "{}")" && docker compose ps | grep -q "Up " && docker compose pull && docker compose up -d'\'' \;'
alias gr='go run'
alias gb='go build -v'
alias gmi='go mod init'
alias gmt='go mod tidy'
alias goclean='go clean -testcache -modcache -fuzzcache -cache'
alias "??"='gh copilot suggest -t shell'