dotfiles/.config/shell/aliases/common

35 lines
856 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/"
alias code="code --password-store='gnome'"
if command -v codium >/dev/null; then
alias code="codium --password-store='gnome'"
fi
alias c=code
command -v pacman >/dev/null && alias p=pacman
command -v zathura >/dev/null && alias z=zathura
command -v ranger >/dev/null && alias r=ranger
[ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"