mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
#!/bin/bash
|
|
|
|
# Use neovim for vim if present
|
|
[ -x "$(command -v nvim)" ] && vimdiff="nvim -d"
|
|
|
|
# Vervosity and settings that you pretty much just always are going to wand
|
|
alias \
|
|
bc="bc -ql" \
|
|
cp="cp -vi" \
|
|
df="df -h" \
|
|
mkdir="mkdir -pv" \
|
|
mv="mv -iv" \
|
|
nsxiv="nsxiv -a" \
|
|
rm="rm -vI" \
|
|
keychain="keychain --dir $XDG_RUNTIME_DIR/keychain"
|
|
|
|
# Colorize commands when possible
|
|
alias \
|
|
diff="diff --color=auto" \
|
|
grep="rg --color=auto" \
|
|
ip="ip -color=auto" \
|
|
less="moar" \
|
|
ls="eza -a --icons --group-directories-first"
|
|
|
|
# These common commands ate just too long! Abbreviate them
|
|
alias \
|
|
battery="acpi" \
|
|
code="vscodium" \
|
|
day="redshift -PO 6500" \
|
|
dv="doasedit" \
|
|
e="$EDITOR" \
|
|
fetch="fastfetch" \
|
|
g="git" \
|
|
gP="git push" \
|
|
ga="git add" \
|
|
gc="git commit" \
|
|
gd="git diff" \
|
|
gp="git pull" \
|
|
gs="git status" \
|
|
j="joshutoub" \
|
|
lf="lfub" \
|
|
lg="lazygit" \
|
|
lock="swaylock" \
|
|
night="redshift -PO 4500" \
|
|
py="python" \
|
|
sv="rsv" \
|
|
v="$EDITOR" \
|
|
weather="curl wttr.in/" \
|
|
ww="$EDITOR ~/neorg/" \
|
|
x="xplr -C ~/.config/xplr/hack.lua" \
|
|
z="zathura"
|
|
|
|
# doas not required for some system commands
|
|
for command in mount umount rsv sv pacman updatedb su shutdown poweroff reboot zzz systemctl wg wg-quick; do
|
|
alias "$command=doas $command"
|
|
done
|
|
unset command
|