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
2020-09-24 21:18:11 -07:00

25 lines
308 B
Bash
Executable File

#! /usr/bin/env zsh
trap "tput cnorm; exit" 2
VAR=$(( $RANDOM % 4 ))
random_say() {
case $VAR in
0)
botsay
;;
1)
cowsay
;;
2)
buddhasay
;;
esac
}
clear
fortune | random_say
tput civis
read
tput cnorm