Split out aliases

This commit is contained in:
dabruh 2023-08-28 16:41:40 +02:00
parent d290b0b1a3
commit c43ead4a25
3 changed files with 27 additions and 24 deletions

View File

@ -1,41 +1,28 @@
#!/bin/bash #!/bin/bash
# shellcheck disable=SC2139
# Verbosity and settings that you pretty much just always are going to want. # Verbosity and settings that you pretty much just always are going to want.
alias \ alias \
bc="bc -ql" \ bc="bc -ql" \
cp="cp -iv" \ cp="cp -iv" \
df='df -h' \
e="${EDITOR:-vim}" \
ffmpeg="ffmpeg -hide_banner" \ ffmpeg="ffmpeg -hide_banner" \
free='free -m' \
g="git" \
ka="killall" \
mkd="mkdir -pv" \ mkd="mkdir -pv" \
mv="mv -iv" \ mv="mv -iv" \
rm="rm -vI" \ rm="rm -vI" \
shrd="shred -zuvn3" \ shrd="shred -zuvn3" \
yt="yt-dlp --embed-metadata -i" \ tmux='tmux -f ~/.config/tmux/tmux.conf'
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 # Misc
alias \ alias \
tmux='tmux -f ~/.config/tmux/tmux.conf' \
df='df -h' \
free='free -m' \
r='ranger' \
w='curl https://wttr.in/' w='curl https://wttr.in/'
which codium >/dev/null && alias code=codium 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'" [ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"

View File

@ -0,0 +1,9 @@
#!/bin/bash
# Kubernetes things
alias \
cx="kubectl-ctx" \
f='flux' \
h='helm' \
k='kubectl' \
v='velero'

View File

@ -0,0 +1,7 @@
#!/bin/bash
# Verbosity and settings that you pretty much just always are going to want.
alias \
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"