1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-05 09:43:38 +08: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-31 03:31:05 +08:00