From: Alexander Goussas Date: Mon, 20 Apr 2026 13:47:12 +0000 (-0500) Subject: add zsh function to display logo X-Git-Url: http://git.frustrated-labs.net/?a=commitdiff_plain;h=c0e0b1f0abaac96c38a34c7322bcc1895afbbef6;p=dotfiles.git add zsh function to display logo --- diff --git a/zsh/.zshrc b/zsh/.zshrc index c627c63..8b30da8 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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 +}