aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlolBanner.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lolBanner.sh b/lolBanner.sh
new file mode 100755
index 0000000..0cc445c
--- /dev/null
+++ b/lolBanner.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Prints a random banner using figlet and lolcat and choosing a line from ~/.config/.banners
+
+nlines=$(cat $HOME/.config/.banners | wc -l)
+line=$(($(($RANDOM % $nlines)) + 1))
+
+figlet "Code : $(sed "${line}q;d" $HOME/.config/.banners)" | lolcat