Organize/source fish functions in dirs

- mpv config
- 369-a3 fish functions
This commit is contained in:
2019-03-12 04:45:04 -04:00
parent 70a2fbf2f3
commit 447af3e8cd
29 changed files with 97 additions and 20 deletions

View File

@@ -21,6 +21,9 @@ bind \cr forward-word
# fish-specific
set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
abbr ff "cd $fish_fxn_dir"
for fxn in (find $fish_fxn_dir -name '*.fish')
source $fxn
end
source /home/kevin/.config/fish/key_abbr.fish
abbr xf "fish_config"
abbr f. "cd .."
@@ -43,7 +46,9 @@ set -xU XSET_DELAY 200
# fxn abbr's
abbr ag "grep-aliases"
abbr bq "benq-brightness"
abbr cf "create-fish-function"
abbr cpc "copy cat"
abbr cpe "copy echo"
abbr cff "create-fish-function"
abbr ev "evince-silent"
# git {{{ #
@@ -68,6 +73,10 @@ abbr grh "grep-headers"
abbr rgh "rg-headers"
abbr r6 "run-a3"
abbr r6f "run-a3-file"
abbr r6c "run-a3-custom"
abbr g6 "gdb-a3"
abbr g6b "gdb-a3-break"
# abbr cs "carsim"
# abbr ga2 "gdb-a2"

View File

@@ -0,0 +1,7 @@
function gdb-a3-break
printf '\033c'
and bear make
and gdb -ex "b pagetable.c:147" \
-ex "run" \
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
end

View File

@@ -0,0 +1,6 @@
function gdb-a3-custom
printf '\033c'
and bear make
gdb -ex "run" -ex "bt" \
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom-2.ref -m 1 -s 10 -a rand
end

View File

@@ -1,6 +1,6 @@
function gdb-a3
# gdb -ex "b safeStopSign.c:96" -ex "run" \
printf '\033c'
and bear make
gdb -ex "run" -ex "bt" \
# gdb -ex "run" \
--args ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
end

View File

@@ -0,0 +1,9 @@
function run-a3-custom
printf '\033c'
# and bear make clean
and bear make
# and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom.ref -m 5 -s 50 -a rand
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-custom-2.ref -m 1 -s 10 -a rand
# rm swapfile.*
end

View File

@@ -0,0 +1,9 @@
function run-a3-file
printf '\033c'
# and bear make clean
and bear make
# and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand > task-1.out
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand > task-1.out 2>&1
# rm swapfile.*
end

View File

@@ -1,7 +1,8 @@
function run-a3
printf '\033c'
# and bear make clean
and bear make
and ./sim -f /home/kevin/school/369/a3/a3/traceprogs/tr-simpleloop.ref -m 50 -s 3000 -a rand
rm swapfile.*
# rm swapfile.*
end

View File

@@ -0,0 +1 @@
[]