dotfiles/.config/shell/aliases/common

34 lines
863 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-11-15 17:38:50 +01:00
df="df -h" \
2023-08-28 16:41:40 +02:00
e="${EDITOR:-vim}" \
2022-07-03 01:18:17 +02:00
ffmpeg="ffmpeg -hide_banner" \
2023-11-15 17:38:50 +01:00
free="free -m" \
2023-08-28 16:41:40 +02:00
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-11-15 17:38:50 +01:00
tmux="tmux -f ~/.config/tmux/tmux.conf"
2022-05-27 21:07:07 +02:00
# Misc
alias \
2023-11-15 17:38:50 +01:00
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
2023-11-15 18:24:44 +01:00
command -v $cmd >/dev/null && alias $cmd="$cmd --password-store='gnome'"
2023-11-15 17:38:27 +01:00
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'"