2015-02-21 23:24:07 +00:00
|
|
|
# Automatically generate or update Chuck's compiled fortune data file
|
|
|
|
DIR=${0:h}/fortunes
|
|
|
|
if [[ ! -f $DIR/chucknorris.dat ]] || [[ $DIR/chucknorris.dat -ot $DIR/chucknorris ]]; then
|
|
|
|
strfile $DIR/chucknorris $DIR/chucknorris.dat
|
|
|
|
fi
|
2015-02-20 04:53:48 +00:00
|
|
|
|
2015-02-21 23:24:07 +00:00
|
|
|
# Aliases
|
|
|
|
alias chuck="fortune -a $DIR"
|
|
|
|
alias chuck_cow="chuck | cowthink"
|
2015-01-30 19:31:05 +00:00
|
|
|
|
2015-02-21 23:24:07 +00:00
|
|
|
unset DIR
|