mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Added plugin octozen
This commit is contained in:
parent
d874c73f19
commit
0b2abd0703
2 changed files with 18 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue