Update 27.11.2022

This commit is contained in:
Kristofers Solo
2022-11-27 23:19:59 +02:00
parent ffcaf42c11
commit 505a4dcf9e
25 changed files with 1061 additions and 285 deletions

View File

@@ -3,51 +3,49 @@
# Use neovim for vim if present
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
# Use $XINITRC variable of file exists
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# doas not required for some system commands
for command in mount umount sv pacman updatedb su shutdown poweroff reboot zzz systemctl ; do
for command in mount umount sv pacman updatedb su shutdown poweroff reboot zzz systemctl wg wg-quick; do
alias $command="doas $command"
done; unset command
# Vervosity and settings that you pretty much just always are going to wand
alias \
cp="cp -iv" \
mv="mv -iv" \
rm="rm -vI" \
bc="bc -ql" \
mkdir="mkdir -pv" \
cp="cp -iv" \
df="df -h" \
nsxiv="nsxiv -a"
mkdir="mkdir -pv" \
mv="mv -iv" \
nsxiv="nsxiv -a" \
rm="rm -vI"
# Colorize commands when possible
alias \
ls="exa -a --icons --group-directories-first" \
grep="rg --color=auto" \
diff="diff --color=auto" \
ip="ip -color=auto"
grep="rg --color=auto" \
ip="ip -color=auto" \
ls="exa -a --icons --group-directories-first"
# These common commands ate just too long! Abbriviate them
alias \
g="git" \
ga="git add" \
gc="git commit" \
gP="git push" \
gp="git pull" \
gs="git status" \
gd="git diff" \
e="$EDITOR" \
v="$EDITOR" \
battery="acpi" \
code="vscodium" \
day="redshift -PO 6500" \
dv="doasedit" \
matrix="unimatrix -s 95" \
py="python" \
airpods="bluetoothctl connect C8:B1:CD:E0:14:4F" \
e="$EDITOR" \
g="git" \
gP="git push" \
ga="git add" \
gc="git commit" \
gd="git diff" \
gp="git pull" \
gs="git status" \
lf="lfrun" \
lg="lazygit" \
matrix="unimatrix -s 95" \
night="redshift -PO 4500" \
py="python" \
v="$EDITOR" \
weather="curl wttr.in/" \
ww="$EDITOR ~/vimwiki/index.md" \
day="redshift -PO 6500" \
night="redshift -PO 4500" \
z="zathura"