blob: e53ecca97c20a9e5d6e5afd5b1e707e87b60d847 (
plain)
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
|
alias lg='lazygit'
alias gpu-watch="watch -n -1 nvidia-smi"
alias zshconfig="nvim ~/.zshrc"
alias gp='git add . && git commit -m "auto push" && git push'
alias zrc='nvim ~/.zshrc'
alias zsource='source ~/.zshrc'
alias v='nvim'
alias vi='nvim'
alias vim='nvim'
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
alias tmux='tmux -f .config/tmux/.tmux.conf'
# Rust CLI programs
if command -v exa > /dev/null; then
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
alias ll='exa -l --color=always --group-directories-first' # long format
alias lt='exa -aT --color=always --group-directories-first' # tree listing
alias l.='exa -a | egrep "^\."'
else
echo "install exa"
fi
if command -v bat > /dev/null; then
alias cat='bat'
else
echo "install bat"
fi
if command -v rg > /dev/null; then
alias grep='rg'
else
echo "install ripgrep"
fi
if command -v fd > /dev/null; then
alias find='fd'
else
echo "install fd"
fi
if ! command -v tokei > /dev/null; then
echo "install tokei"
fi
if command -v procs > /dev/null; then
alias ps='procs'
else
echo "install procs"
fi
if ! command -v btm > /dev/null; then
echo "install bottom"
fi
|