44 lines
949 B
Bash
44 lines
949 B
Bash
#!/bin/bash
|
|
|
|
alias .f='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
alias .fm='git --git-dir=$HOME/.dotfiles-mail/ --work-tree=$HOME'
|
|
|
|
alias aliases='vim ~/.config/aliasrc && source ~/.config/aliasrc'
|
|
|
|
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
|
|
|
alias cp='cp -i'
|
|
|
|
alias df='df -h'
|
|
alias doas='doas --'
|
|
alias dotfiles='.f'
|
|
alias dotfiles-mail='.fm'
|
|
alias du='du -h'
|
|
|
|
alias free='free -h'
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias hist-grep='history 0 | grep '
|
|
|
|
alias j='jump'
|
|
|
|
alias ls='ls -Flh --color=auto'
|
|
|
|
alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE'
|
|
|
|
alias make='make -j5'
|
|
|
|
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
|
|
|
|
alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_DIR/qutebrowser-kiosk -C $XDG_CONFIG_DIR/qutebrowser/config-kiosk.py'
|
|
|
|
alias rm='rm -I --one-file-system -v'
|
|
|
|
alias sudo='sudo '
|
|
|
|
### conditionals
|
|
|
|
[ -x "$(command -v bat)" ] && alias cat='bat -pp'
|
|
|
|
[ -x "$(command -v exa)" ] && alias ls='exa -lh --git --icons'
|