dotfiles/.config/shell/aliases/common

34 lines
852 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/"
for cmd in code codium; do
command -v $cmd && alias $cmd="$cmd --password-store='gnome'"
done
command -v codium >/dev/null && 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'"