1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00
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