xonecas.io
433
Sg

shell-greeting / files

shell-greeting / greeting.sh

477 bytes
1#!/bin/bash
2
3# Depends on fortune, cowsay, lolcat and pfetch.
4# Simply source this file from your ./bashrc or ./bash_profile
5
6cows=(
7  'www.cow'
8  'vader.cow'
9  'unipony-smaller.cow'
10  'three-eyes.cow'
11  'skeleton.cow'
12  'sheep.cow'
13  'moose.cow'
14  'moofasa.cow'
15  'flaming-sheep.cow'
16  'default.cow'
17  'cower.cow'
18)
19
20cows=( $(shuf -e "${cows[@]}") )
21fortune | cowsay -f ${cows[0]} | lolcat -p 1.0 -F 0.06 -S $(echo $RANDOM)
22PF_INFO="title os host kernel uptime memory" pfetch