dotfiles/.config/shell/aliasrc

42 lines
968 B
Bash

#!/bin/bash
# Verbosity and settings that you pretty much just always are going to want.
alias \
bc="bc -ql" \
cp="cp -iv" \
ffmpeg="ffmpeg -hide_banner" \
mkd="mkdir -pv" \
mv="mv -iv" \
rm="rm -vI" \
shrd="shred -zuvn3" \
yt="yt-dlp --embed-metadata -i" \
yta="yt -x -f bestaudio/best -o '%(uploader)s - %(title)s [%(id)s].%(ext)s'" \
ytmp3="yta --audio-format mp3 --audio-quality 192K"
# Kubernetes things
alias \
cx="kubectl-ctx" \
f='flux' \
h='helm' \
k='kubectl' \
v='velero'
# These common commands are just too long! Abbreviate them.
alias \
ka="killall" \
g="git" \
e="${EDITOR:-vim}" \
p="pacman" \
z="zathura"
# Misc
alias \
tmux='tmux -f ~/.config/tmux/tmux.conf' \
df='df -h' \
free='free -m' \
r='ranger' \
w='curl https://wttr.in/'
which codium >/dev/null && alias code=codium
[ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"