oh-my-zsh/plugins/octozen/octozen.plugin.zsh

14 lines
246 B
Bash
Raw Normal View History

2017-03-13 13:37:32 +00:00
# octozen plugin
# Displays a zen from octocat
#
function display_octozen() {
local command="curl -s https://api.github.com/octocat"
local zen=$(eval ${command})
if [ "$zen" != "" ]; then
printf '%s\n' ${zen}
fi
}
display_octozen