]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/octozen/octozen.plugin.zsh
71ee550a561e1b95aa5508cf78b45a6975704d62
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / octozen / octozen.plugin.zsh
1 # octozen plugin
2
3 # Displays a zen quote from octocat
4 function 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
10 autoload -Uz add-zsh-hook
11 add-zsh-hook precmd display_octozen