]> git.frustrated-labs.net Git - dotfiles.git/commitdiff
add zsh function to display logo
authorAlexander Goussas <[email protected]>
Mon, 20 Apr 2026 13:47:12 +0000 (08:47 -0500)
committerAlexander Goussas <[email protected]>
Mon, 20 Apr 2026 13:47:12 +0000 (08:47 -0500)
zsh/.zshrc

index c627c63991d61330dd509244553d4a3e904e5d4b..8b30da859f7ce79a8b80763b0f75d628e4f37cba 100644 (file)
@@ -54,3 +54,17 @@ alias glu='git ls-files --others --exclude-standard'
 if command -v fastfetch >/dev/null; then
   fastfetch
 fi
+
+function logo() {
+  command -v figlet >/dev/null || exit 1
+  command -v lolcat >/dev/null || exit 1
+
+  echo "frustrated\nfunctor" | figlet -f slant | lolcat
+
+  local logoImg="$HOME/Developer/aloussase.github.io/public/logo.png"
+
+  test -f "$logoImg" || exit 1
+  command -v tiv    >/dev/null || exit 1
+
+  tiv "$logoImg" -w 40 -2 2>/dev/null
+}