2021-12-08 09:38:24 -06:00
|
|
|
# system usage
|
|
|
|
#########################################
|
|
|
|
alias reload="source ~/.zshrc"
|
|
|
|
alias rr="rm -rf"
|
|
|
|
#########################################
|
|
|
|
|
|
|
|
#ls type aliases
|
|
|
|
#########################################
|
|
|
|
#alias ls='ls -F'
|
|
|
|
alias l='ls -lh --color=auto'
|
|
|
|
alias ll="ls -lhA"
|
|
|
|
alias left='ls -t -1'
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
alias lsl="ls -lhFA | less"
|
|
|
|
#########################################
|
|
|
|
|
|
|
|
# List declared aliases, functions, paths
|
|
|
|
#########################################
|
|
|
|
alias aliases="alias | sed 's/=.*//'"
|
|
|
|
alias functions="declare -f | grep '^[a-z].* ()' | sed 's/{$//'"
|
|
|
|
alias paths='echo -e ${PATH//:/\\n}'
|
|
|
|
#########################################
|
|
|
|
|
|
|
|
# program dependent aliases
|
|
|
|
#########################################
|
|
|
|
alias code2="code-insiders"
|
|
|
|
# ls -> lsd | swap ls for ls-deluxe
|
|
|
|
if is-executable lsd; then
|
|
|
|
|
2022-05-18 00:30:01 -05:00
|
|
|
is-tty && alias lsd="lsd --icon never"
|
2022-06-04 11:46:08 -05:00
|
|
|
alias ls='lsd'
|
2021-12-08 09:38:24 -06:00
|
|
|
alias l='lsd -l'
|
|
|
|
alias la='lsd -a'
|
|
|
|
alias lla='lsd -la'
|
|
|
|
alias lt='lsd --tree --depth=3'
|
|
|
|
alias lr='lsd -R'
|
|
|
|
|
|
|
|
fi
|
|
|
|
#lazygit
|
|
|
|
is-executable lazygit && alias lg=lazygit
|
|
|
|
# source custom tmux.conf with older tmux
|
|
|
|
alias tmux="tmux -f ~/.config/tmux/tmux.conf"
|
|
|
|
alias rc="rclone --filter-from ~/.config/rclone/filter-file.txt"
|
|
|
|
# prefer nvim if installed
|
|
|
|
is-executable nvim && alias vim=nvim
|
|
|
|
# gdu defualts
|
|
|
|
is-executable gdu && alias gdu -I '.*node_modules' -H
|
|
|
|
# more fzf
|
|
|
|
alias fzf-bat="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'"
|
2022-01-04 10:42:33 -06:00
|
|
|
alias vivaldi="vivaldi-stable"
|
2022-01-18 12:27:18 -06:00
|
|
|
#zellij
|
2022-01-18 15:54:21 -06:00
|
|
|
if is-executable zellij; then
|
2022-01-18 12:27:18 -06:00
|
|
|
|
2022-01-18 12:29:42 -06:00
|
|
|
alias zs="zellij -s"
|
|
|
|
alias zl="zellij ls"
|
|
|
|
alias za="zellij a"
|
2022-01-18 15:54:21 -06:00
|
|
|
|
2022-01-18 12:27:18 -06:00
|
|
|
fi
|
2022-03-02 12:56:40 -06:00
|
|
|
#zenith
|
|
|
|
alias zenith="zenith -d 0 -n 0"
|
2021-12-08 09:38:24 -06:00
|
|
|
##########################################
|