aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bashly.yml11
-rw-r--r--src/watch_command.sh5
2 files changed, 16 insertions, 0 deletions
diff --git a/src/bashly.yml b/src/bashly.yml
index 17d99ae..2a83181 100644
--- a/src/bashly.yml
+++ b/src/bashly.yml
@@ -34,6 +34,17 @@ commands:
- name: search
repeatable: true
+ - name: watch
+ alias: w
+ dependencies: [ani-cli]
+ args:
+ - name: search
+ repeatable: true
+
+ flags:
+ - long: --dub
+ short: -d
+
- name: x
dependencies: [xdg-open, curl, echo, tr, jq]
diff --git a/src/watch_command.sh b/src/watch_command.sh
new file mode 100644
index 0000000..9fd039d
--- /dev/null
+++ b/src/watch_command.sh
@@ -0,0 +1,5 @@
+if [ -n "${args[--dub]}" ]; then
+ ani-cli --dub "$(array_to_string "${args[search]}")"
+else
+ ani-cli "$(array_to_string "${args[search]}")"
+fi