dotfiles/.config/shell/aliases/common

34 lines
852 B
Plaintext
Raw Normal View History

2022-05-27 21:07:07 +02:00
#!/bin/bash
2023-08-28 16:41:40 +02:00
# shellcheck disable=SC2139
2022-05-27 21:07:07 +02:00
# Verbosity and settings that you pretty much just always are going to want.
alias \
2023-09-15 13:26:39 +02:00
ls="ls --color=auto" \
2022-07-03 01:18:17 +02:00
bc="bc -ql" \
2022-05-27 21:07:07 +02:00
cp="cp -iv" \
2023-08-28 16:41:40 +02:00
df='df -h' \
e="${EDITOR:-vim}" \
2022-07-03 01:18:17 +02:00
ffmpeg="ffmpeg -hide_banner" \
2023-08-28 16:41:40 +02:00
free='free -m' \
g="git" \
ka="killall" \
2022-07-03 01:18:17 +02:00
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" \
2023-08-28 16:41:40 +02:00
tmux='tmux -f ~/.config/tmux/tmux.conf'
2022-05-27 21:07:07 +02:00
# Misc
alias \
w='curl https://wttr.in/'
2022-06-08 10:21:13 +02:00
2023-11-15 17:38:27 +01:00
for cmd in code codium; do
command -v $cmd && alias $cmd="$cmd --password-store='gnome'"
done
command -v codium >/dev/null && alias c=code
2023-11-15 17:30:43 +01:00
command -v pacman >/dev/null && alias p=pacman
command -v zathura >/dev/null && alias z=zathura
command -v ranger >/dev/null && alias r=ranger
2022-09-07 16:38:31 +02:00
[ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"