Added plugin octozen

This commit is contained in:
Gregor Trefs 2017-03-13 14:37:32 +01:00
parent d874c73f19
commit 0b2abd0703
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Octozen plugin
Displays a zen quote of octocat on start up.
Internet connection is required.

View File

@ -0,0 +1,13 @@
# 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