dotfiles/.config/shell/aliases/common

42 lines
968 B
Plaintext
Raw Normal View History

2022-05-27 21:07:07 +02:00
#!/bin/bash
# Verbosity and settings that you pretty much just always are going to want.
alias \
2022-07-03 01:18:17 +02:00
bc="bc -ql" \
2022-05-27 21:07:07 +02:00
cp="cp -iv" \
2022-07-03 01:18:17 +02:00
ffmpeg="ffmpeg -hide_banner" \
mkd="mkdir -pv" \
2022-05-27 21:07:07 +02:00
mv="mv -iv" \
rm="rm -vI" \
2022-07-03 01:18:17 +02:00
shrd="shred -zuvn3" \
2022-05-27 21:07:07 +02:00
yt="yt-dlp --embed-metadata -i" \
2022-07-02 20:50:01 +02:00
yta="yt -x -f bestaudio/best -o '%(uploader)s - %(title)s [%(id)s].%(ext)s'" \
2022-07-03 01:18:17 +02:00
ytmp3="yta --audio-format mp3 --audio-quality 192K"
2022-05-27 21:07:07 +02:00
# Kubernetes things
alias \
2022-12-14 15:44:18 +01:00
cx="kubectl-ctx" \
2022-05-27 21:07:07 +02:00
f='flux' \
h='helm' \
k='kubectl' \
v='velero'
# These common commands are just too long! Abbreviate them.
alias \
ka="killall" \
g="git" \
2022-06-07 14:46:06 +02:00
e="${EDITOR:-vim}" \
2022-05-27 21:07:07 +02:00
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/'
2022-06-08 10:21:13 +02:00
which codium >/dev/null && alias code=codium
2022-09-07 16:38:31 +02:00
[ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"