在同一场景中,还有一个 24 小时时钟。这部电影走在了时代的前列(双关语)。
在一名工人疯狂地调整指针以保证摩洛奇运转的场景中,也使用了 10 时钟。
在一名工人疯狂地调整指针以保证摩洛奇运转的场景中,也使用了 10 时钟。
if [ "$SESSION_TYPE" != 'remote/ssh' ]; then
if [ "${TERM_PROGRAM}" != 'tmux' ]; then
( if [ $[RANDOM % 10] == "0" ]; then fortune -n 40 -s; else echo "Hi, $(whoami)!"; fi ) | cowsay | lolcat && printf '\n'
else
if [ "${TMUX_PANE}" == '%0' ]; then
fortune | cowsay -f small | lolcat && printf '\n'
fi
fi
fi
It's a whole chain of interpreters firing up (sub-shells, Perl for the cow, Ruby for the lol, I think.) :D