From 9fbdd76ea1621d0fd194a7a667d9e2639b454b23 Mon Sep 17 00:00:00 2001 From: Georg Ogris Date: Thu, 21 Jan 2016 15:24:13 +0100 Subject: [PATCH] added geeknote plugin initial version --- plugins/geeknote/geeknote.plugin.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugins/geeknote/geeknote.plugin.zsh diff --git a/plugins/geeknote/geeknote.plugin.zsh b/plugins/geeknote/geeknote.plugin.zsh new file mode 100644 index 000000000..75e529a00 --- /dev/null +++ b/plugins/geeknote/geeknote.plugin.zsh @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------------ +# FILE: geeknote.plugin.zsh +# DESCRIPTION: oh-my-zsh plugin file. +# AUTHOR: Georg Ogris (georg.ogris@gmail.com) +# VERSION: 0.0.1 +# ------------------------------------------------------------------------------ + + +# add to a new bookmark to Bookmarks +function gnb() { + local link=$1 + shift 1 + + geeknote create --title '"'"$link"'"' \ + --content '"'"$link"'"' \ + --notebook '"Bookmarks"' \ + --tags '"readings"' + #--tags '"'"$@"'"' +}