2022-07-04 21:36:33 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Use $XINITRC variable if file exists.
|
|
|
|
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
|
|
|
|
|
|
|
# sudo not required for some system commands
|
2022-08-01 18:04:11 +02:00
|
|
|
for command in mount umount sv pacman apt updatedb su shutdown poweroff reboot ; do
|
2022-07-04 21:36:33 +02:00
|
|
|
alias $command="sudo $command"
|
|
|
|
done; unset command
|
|
|
|
|
|
|
|
# Verbosity and settings that you pretty much just always are going to want.
|
|
|
|
alias \
|
|
|
|
cp="cp -iv" \
|
|
|
|
mv="mv -iv" \
|
|
|
|
rm="rm -vI" \
|
|
|
|
bc="bc -ql" \
|
|
|
|
mkd="mkdir -pv" \
|
|
|
|
ffmpeg="ffmpeg -hide_banner" \
|
|
|
|
exa="exa -abghHliS" \
|
2022-07-22 13:09:59 +02:00
|
|
|
duf="duf -all" \
|
2022-08-01 18:04:11 +02:00
|
|
|
lock='slock -m "$(cowsay "$(fortune)" | lolcat -ft)"' \
|
|
|
|
ls="ls -hN --color=auto --group-directories-first" \
|
|
|
|
grep="grep --color=auto" \
|
|
|
|
diff="diff --color=auto" \
|
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
|
|
# Colorize commands when possible.
|
|
|
|
alias \
|
|
|
|
ls="ls -hN --color=auto --group-directories-first" \
|
|
|
|
grep="grep --color=auto" \
|
|
|
|
diff="diff --color=auto" \
|
2022-08-01 18:04:11 +02:00
|
|
|
ccat="highlight --out-format=ansi" \
|
|
|
|
ip="ip -color=auto"
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
|
|
# These common commands are just too long! Abbreviate them.
|
|
|
|
alias \
|
|
|
|
ka="killall" \
|
2022-07-22 13:09:59 +02:00
|
|
|
e="$EDITOR" \
|
2022-08-01 18:04:11 +02:00
|
|
|
z="zathura" \
|
|
|
|
p="pacman" \
|
2022-08-08 17:42:48 +02:00
|
|
|
ar="apt remove" \
|
|
|
|
are="apt reinstall" \
|
2022-08-01 18:04:11 +02:00
|
|
|
ai="apt install" \
|
2022-08-02 14:40:18 +02:00
|
|
|
aur="apt autoremove" \
|
|
|
|
kssh="kitty +kitten ssh"
|
2022-07-22 13:09:59 +02:00
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
# Misc.
|
|
|
|
alias \
|
|
|
|
ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \
|
|
|
|
weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \
|
|
|
|
remvirt="virt-manager -c 'qemu+ssh://luca@192.168.178.200/system'" \
|
2022-07-04 23:30:22 +02:00
|
|
|
vim="lvim" \
|
2022-07-22 13:09:59 +02:00
|
|
|
wikidown='rclone sync cloud:files/luca/Notes ~/Documents/vimwiki' \
|
2022-08-03 11:38:01 +02:00
|
|
|
wikiup='rclone sync ~/Documents/vimwiki cloud:files/luca/Notes' \
|
2022-08-08 09:28:20 +02:00
|
|
|
cam="mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)" \
|
|
|
|
ahv="export ANSIBLE_VAULT_PASSWORD_FILE=~/.ansible/secrets/ansible-homelab && ansible-vault"
|