summaryrefslogtreecommitdiff
path: root/bukuadd
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2025-02-07 00:12:08 +0500
committerAnton Bobov <anton@bobov.name>2025-02-07 00:13:23 +0500
commitda3c27abf212606850fb0c2f41cbdecfd99b1f01 (patch)
tree95ff416e6a50db5298c965f2bf35e32d83b02fb1 /bukuadd
parent62ec471101f29a43a3605d97678aefddb838468b (diff)
Add buku scripts
* script to add URL to buku * script to fuzzy search and open bookmarks
Diffstat (limited to 'bukuadd')
-rwxr-xr-xbukuadd13
1 files changed, 13 insertions, 0 deletions
diff --git a/bukuadd b/bukuadd
new file mode 100755
index 0000000..6c7b2ab
--- /dev/null
+++ b/bukuadd
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+main() {
+ if [ $# -eq 0 ]; then
+ alert "Added" -- buku --nostdin --add "$(xsel -ob)" need review
+ else
+ alert "Added" -- buku --nostdin --add "$1" need review
+ fi
+}
+
+main "$@"