mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
added geeknote plugin initial version
This commit is contained in:
parent
5464fe3e4a
commit
9fbdd76ea1
1 changed files with 19 additions and 0 deletions
19
plugins/geeknote/geeknote.plugin.zsh
Normal file
19
plugins/geeknote/geeknote.plugin.zsh
Normal file
|
|
@ -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 '"'"$@"'"'
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue