forked from coderabbitai/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_aliases
43 lines (36 loc) · 1.12 KB
/
dot_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
exa_options='--links --git --group --changed --time-style long-iso --icons'
# replace ls with exa
alias ls='exa $(printf $exa_options)'
alias tree='exa --tree $(printf $exa_options)'
# Homebrew stuffs
alias update="brew update"
alias upgrade="brew upgrade"
alias cleanup="brew cleanup"
alias install="brew install"
alias doctor="echo '\nDoctor? Doctor who?\n' && brew doctor"
alias uud="update; upgrade; cleanup; doctor"
alias ood="uud"
# Utility commands (mostly from https://news.ycombinator.com/item?id=9869231)
alias o='open'
alias q='exit'
alias c='clear'
# Search process by name and highlight
function psgrep() { ps axu | grep -v grep | grep "$@" -i --color=auto; }
alias du='dust'
alias df='duf'
alias curl='curlie'
alias cat='bat -P'
alias diff='batdiff'
alias bathelp='bat --plain --language=help'
help() {
"$@" --help 2>&1 | bathelp
}
alias top='btm -b'
if [[ $OSTYPE == 'darwin'* ]]; then
#icloud drive
alias icloud='cd ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/'
fi
alias k='kubectl'
alias root='cd $(git rev-parse --show-toplevel || echo ".")'
alias '?'='gh copilot explain'
alias '??'='gh copilot suggest'