Update 369-a3 functions

This commit is contained in:
2019-03-17 03:03:24 -04:00
parent 32bb94ffba
commit 3b9743fd4f
11 changed files with 130 additions and 59 deletions

View File

@@ -1,4 +1,5 @@
# system {{{ #
# vim: fdm=marker
# clear screen
c "printf '\033c'"
@@ -8,8 +9,8 @@ fi "fish"
# reload urxvt
ru "xrdb ~/.Xresources"
# list file sizes in megabytes with depth 1
duh "sudo du -d 1 -h"
dum "sudo du -d 1 -m"
duh "sudo du -d 1 -ah | sort -hr"
dum "sudo du -d 1 -am | sort -hr"
m "man"
tl "tldr"
@@ -18,8 +19,8 @@ nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0
vgb "sudo nvim /etc/default/grub"
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
bt "bat"
bta "bat *"
b "bat"
ba "bat *"
grep "grep --color=auto -n"
grr "grep -r"
# pk "pkill -f"
@@ -50,7 +51,7 @@ udmb "udisksctl mount -b /dev/sdc2"
udu "udisksctl unmount -b"
udub "udisksctl unmount -b /dev/sdc2"
to "touch"
tc "touch"
# directory-related {{{ #
ls "lsd"
@@ -81,8 +82,9 @@ nbu "cd /run/media/kevin/backup-hd/nzxt/tar && lsd -l"
# power options {{{ #
s "systemctl suspend"
sd "sudo shutdown 0"
rb "sudo shutdown -r 0"
so "xset dpms force off"
sd "systemctl poweroff"
rb "systemctl reboot"
lo "i3-msg exit"
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
@@ -126,8 +128,8 @@ id "identify"
# config files {{{ #
rf "source ~/.config/fish/config.fish"
srf "sync-shortcuts && source ~/.config/fish/config.fish"
rz "source ~/linux-config/aliases/zsh_aliases"
lca "f ~/linux-config/aliases"
pipes "pipes.sh -t 3"
@@ -159,6 +161,9 @@ sx "sxiv"
sxa "sxiv -a"
wg "wego"
wp "grep wallpaper ~/.cache/wal/colors.sh"
z "zathura --fork"
lz "unzip -l"
# rsl "java -jar ~/Downloads/RuneLite.jar"
# swex "sudo nohup ~/Downloads/swex.appimage $silent"
@@ -233,12 +238,12 @@ grmfc "git rm -f --cached"
# }}} add #
# diff/log {{{ #
gd "git diff -w"
gdc "git diff --cached -w"
gd "git difftool -w --tool=vimdiff"
gdc "git difftool -w --cached --tool=vimdiff"
gdl "git diff -w"
gdlc "git diff --cached -w"
gdh "git diff --cached -w HEAD~1"
gds "git diff --stat"
gdv "git difftool -w --tool=vimdiff"
gdvc "git difftool -w --cached --tool=vimdiff"
gl "git log"
gsl "git shortlog"
# }}} diff/log #
@@ -298,6 +303,8 @@ gunc "git update-index --assume-unchanged"
# coding projs {{{ #
# coding_dir="~/coding"
rgt "rg TODO"
# trapbot {{{ #
# tb "$cd_coding_dir/trapbot"
# vtb "$cd_coding_dir/trapbot && ni scan_reddit.py"
@@ -397,4 +404,6 @@ hl "valgrind --tool=helgrind ./carsim light 10 20"
wl0 "watson log --all --project=309 --tag=project"
wr0 "watson report --all --project=309 --tag=project"
e3t "node test-app.js"
# }}} school #