mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
13 lines
246 B
Bash
13 lines
246 B
Bash
# 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
|