ohmyzsh/plugins/chucknorris/chucknorris.plugin.zsh

13 lines
364 B
Bash
Raw Normal View History

() {
# 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