octozen.plugin.zsh 328 B

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