2015-02-20 04:53:48 +00:00
|
|
|
() {
|
|
|
|
# Automatically generate or update Chuck's compiled fortune data file
|
|
|
|
local fdir=$ZSH/plugins/chucknorris/fortunes
|
|
|
|
if [[ ! -f $fdir/chucknorris.dat ]] || [[ $fdir/chucknorris.dat -ot $fdir/chucknorris ]]; then
|
|
|
|
strfile $fdir/chucknorris $fdir/chucknorris.dat
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Aliases
|
|
|
|
alias chuck="fortune -a $fdir"
|
|
|
|
alias chuck_cow="chuck | cowthink"
|
|
|
|
}
|
2015-01-30 19:31:05 +00:00
|
|
|
|