octozen.plugin.zsh
328 bytes
1# octozen plugin
2
3# Displays a zen quote from octocat
4function display_octozen() {
5 curl -m 2 -fsL "https://api.github.com/octocat"
6 add-zsh-hook -d precmd display_octozen
7}
8
9# Display the octocat on the first precmd, after the whole starting process has finished
10autoload -Uz add-zsh-hook
11add-zsh-hook precmd display_octozen