diff options
-rwxr-xr-x | 2022/get | 2 | ||||
-rwxr-xr-x | 2022/run | 2 | ||||
-rwxr-xr-x | 2022/vars | 2 | ||||
-rwxr-xr-x | 2022/watch | 7 |
4 files changed, 10 insertions, 3 deletions
@@ -13,4 +13,4 @@ cp "nim/day${DAY}/input.txt" "rust/day${DAY}/src/input.txt" subl -a "nim/day${DAY}/input.txt" subl -a "nim/day${DAY}/main.nim" -chromium "https://adventofcode.com/${YEAR}/day/$((10#${DAY}))" +# chromium "https://adventofcode.com/${YEAR}/day/$((10#${DAY}))" @@ -2,4 +2,4 @@ source "vars" -nim c -r "nim/day${DAY}/main.nim" "nim/day${DAY}/input.txt" +nim c --warnings:off --hints:off -r "nim/day${DAY}/main.nim" "nim/day${DAY}/input.txt" @@ -1,4 +1,4 @@ #!/bin/bash DAY="01" -YEAR="2021" +YEAR="2022" diff --git a/2022/watch b/2022/watch new file mode 100755 index 0000000..3792b58 --- /dev/null +++ b/2022/watch @@ -0,0 +1,7 @@ +#!/bin/bash + +source "vars" + +while inotifywait --quiet --event modify "~/watched_file" +do ./run +done |