-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
executable file
·66 lines (55 loc) · 1.61 KB
/
Copy pathaliases
File metadata and controls
executable file
·66 lines (55 loc) · 1.61 KB
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
# navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ~='cd ~'
alias home='clear && udot && cd ~ '
# shortcuts
alias d='du -h -d=1'
alias g='git'
alias history='history -E'
alias h='history'
alias ipt='iptables -L -n --line-numbers'
alias nginxtest='docker exec -it nginx nginx -t'
alias nginxreload='docker exec -it nginx /bin/bash -c "/usr/sbin/nginx -t && /usr/sbin/nginx -s reload"'
# defaults
alias df='df -h'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
# https://github.com/BurntSushi/ripgrep
alias grep=rg
# fd → find replacement (https://github.com/sharkdp/fd
fda='fd -IH'
# https://osxdaily.com/2026/01/22/btop-for-macos-is-an-excellent-terminal-system-resource-monitor/
alias top=btop
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
colorflag="--color"
else # OS X `ls`
colorflag="-G"
fi
if [ -f /opt/homebrew/bin/eza ]; then
alias ls='eza $eza_params'
alias l='eza --git-ignore $eza_params'
alias ll='eza --all --header --long $eza_params'
alias llm='eza --all --header --long --sort=modified $eza_params'
#alias la='eza -lbhHigUmuSa'
alias la='eza -lbhHgma'
alias lx='eza -lbhHigUmuSa@'
alias lt='eza --tree $eza_params'
alias tree='eza --tree $eza_params'
alias lsize='eza --long --total-size --sort=size $eza_params'
else
alias la='ls -laF ${colorflag}'
alias ls='ls -Fh ${colorflagI}'
fi
alias tmux='tmux -2'
alias view='vim -p -R'
alias vp='vim -p'
alias cat='bat'
alias tig='tig --all'
alias lgit='lazygit'
alias yy=yt-dlp
alias he='cd ~ && exit && exit'