summaryrefslogtreecommitdiff
path: root/docs/update_screenshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docs/update_screenshot.sh')
-rwxr-xr-xdocs/update_screenshot.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/update_screenshot.sh b/docs/update_screenshot.sh
new file mode 100755
index 0000000..a404047
--- /dev/null
+++ b/docs/update_screenshot.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -x -e
+go install github.com/homeport/termshot/cmd/termshot@main
+cargo install onefetch
+COMMIT_COUNT=$(git log --pretty=format:'' | wc -l | xargs)
+echo Commit count: $COMMIT_COUNT
+if (( $COMMIT_COUNT % 69 == 0 ))
+then
+ echo "easter egg, yay!"
+ termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a html | lolcat"
+else
+ echo "normal. Yay."
+ termshot --show-cmd --filename Writerside/assets/onefetch.png -- "onefetch --number-of-authors 0 -a c++"
+fi \ No newline at end of file