mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 15:30:15 +08:00
11 lines
319 B
Bash
11 lines
319 B
Bash
# 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"
|
|
|
|
unset DIR |