dotfiles/.config/shell/aliases/common
2023-09-15 13:26:39 +02:00

29 lines
747 B
Bash

#!/bin/bash
# shellcheck disable=SC2139
# Verbosity and settings that you pretty much just always are going to want.
alias \
ls="ls --color=auto" \
bc="bc -ql" \
cp="cp -iv" \
df='df -h' \
e="${EDITOR:-vim}" \
ffmpeg="ffmpeg -hide_banner" \
free='free -m' \
g="git" \
ka="killall" \
mkd="mkdir -pv" \
mv="mv -iv" \
rm="rm -vI" \
shrd="shred -zuvn3" \
tmux='tmux -f ~/.config/tmux/tmux.conf'
# Misc
alias \
w='curl https://wttr.in/'
which codium >/dev/null && alias code=codium c=codium
which pacman >/dev/null && alias p=pacman
which zathura >/dev/null && alias z=zathura
which ranger >/dev/null && alias r=ranger
[ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"