ohmyzsh/plugins/chucknorris/chucknorris.plugin.zsh

11 lines
319 B
Bash
Raw Normal View History

# 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
# Aliases
alias chuck="fortune -a $DIR"
alias chuck_cow="chuck | cowthink"
2015-01-30 19:31:05 +00:00
unset DIR