This repository has been archived on 2026-10-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles-archive/.scripts/fun/fortune.sh
T

23 lines
379 B
Bash
Executable File

#! /usr/bin/env zsh
trap "tput cnorm; exit" 2
VAR=$(( $RANDOM % 3 ))
random_say() {
case $VAR in
0)
botsay
;;
1)
cowsay
;;
2)
buddhasay
;;
esac
}
clear
while [ true ]; do fortune | random_say && tput civis && read && clear && sh ~/.scripts/fun/fortune.sh; done
tput cnorm