2023-05-04 02:24:10 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Use $XINITRC variable if file exists.
|
|
|
|
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
|
|
|
|
2024-01-27 03:42:16 -05:00
|
|
|
[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC"
|
|
|
|
|
2023-05-04 02:24:10 -04:00
|
|
|
# sudo not required for some system commands
|
2024-01-27 03:42:16 -05:00
|
|
|
for command in mount umount updatedb su shutdown poweroff reboot ; do
|
2023-05-04 02:24:10 -04:00
|
|
|
alias $command="sudo $command"
|
|
|
|
done; unset command
|
|
|
|
|
|
|
|
alias \
|
2024-01-27 03:42:16 -05:00
|
|
|
e="emacsclient -tty -a ''" \
|
|
|
|
emc="setsid -f emacsclient -c -a '' >/dev/null 2>&1" \
|
|
|
|
emo="emacsclient" \
|
|
|
|
kem="emacsclient -e '(kill-emacs)'" \
|
|
|
|
vimdiff="nvim -d" \
|
2023-05-04 02:24:10 -04:00
|
|
|
cp="cp -iv" \
|
|
|
|
mv="mv -iv" \
|
|
|
|
rm="rm -vI" \
|
|
|
|
bc="bc -ql" \
|
|
|
|
mkd="mkdir -pv" \
|
2024-01-27 03:42:16 -05:00
|
|
|
ffmpeg="ffmpeg -hide_banner" \
|
2023-05-04 02:24:10 -04:00
|
|
|
ls="ls -hN --color=auto --group-directories-first" \
|
|
|
|
grep="grep --color=auto" \
|
|
|
|
diff="diff --color=auto" \
|
|
|
|
ccat="highlight --out-format=ansi" \
|
2024-01-27 03:42:16 -05:00
|
|
|
ip="ip -color=auto" \
|
2023-05-04 02:24:10 -04:00
|
|
|
ka="killall" \
|
|
|
|
g="git" \
|
|
|
|
sdn="shutdown -h now" \
|
|
|
|
v="nvim" \
|
|
|
|
z="zathura" \
|
2024-01-27 03:42:16 -05:00
|
|
|
d="sdcv" \
|
|
|
|
i="nsxiv -a" \
|
|
|
|
pg="ps -aux | grep --color=auto" \
|
|
|
|
weath="curl wttr.in" \
|
2023-12-16 17:51:21 -05:00
|
|
|
ytmus="yt-dlp --embed-metadata --embed-thumbnail -xc -f 'bestaudio[ext=m4a]'" \
|
2023-05-04 02:24:10 -04:00
|
|
|
ytvid="yt-dlp --embed-metadata --embed-thumbnail --embed-chapters --write-auto-subs -f bestvideo'[height<=1080]''[ext=mp4]'+bestaudio'[ext=m4a]'/best'[ext=mp4]'/best" \
|
2024-01-27 03:42:16 -05:00
|
|
|
hgs="hugo server --noHTTPCache --disableFastRender" \
|
|
|
|
left='uxnemu ~/.local/uxn/left.rom' \
|
|
|
|
bouc='uxnemu ~/.local/uxn/bouc.rom' \
|
|
|
|
catclock='uxnemu ~/.local/uxn/catclock.rom' \
|
|
|
|
b='$BROWSER'\
|
|
|
|
sc='sc-im'\
|
|
|
|
l='ledger -f ~/notebook/ac/ac.ledger'
|
|
|
|
|
|
|
|
wedit(){
|
|
|
|
which $@ >/dev/null 2>&1 && [ -n "$1" ] && $EDITOR $(which $@) || printf "file doesn't exist.\n"
|
|
|
|
}
|