Added plugin octozen
This commit is contained in:
parent
d874c73f19
commit
0b2abd0703
5
plugins/octozen/README.md
Normal file
5
plugins/octozen/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Octozen plugin
|
||||
|
||||
Displays a zen quote of octocat on start up.
|
||||
|
||||
Internet connection is required.
|
13
plugins/octozen/octozen.plugin.zsh
Normal file
13
plugins/octozen/octozen.plugin.zsh
Normal 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
|
Loading…
Reference in New Issue
Block a user