summaryrefslogtreecommitdiff
path: root/home/.selfconfigs/zsh/functions/yta
diff options
context:
space:
mode:
Diffstat (limited to 'home/.selfconfigs/zsh/functions/yta')
-rw-r--r--home/.selfconfigs/zsh/functions/yta8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/.selfconfigs/zsh/functions/yta b/home/.selfconfigs/zsh/functions/yta
new file mode 100644
index 0000000..42cef33
--- /dev/null
+++ b/home/.selfconfigs/zsh/functions/yta
@@ -0,0 +1,8 @@
+function yta()
+{
+ if [ $# == 0 ]; then
+ echo usage: yta \[SEARCH TERM\]
+ else
+ mpv --ytdl-format=bestaudio ytdl://ytsearch:"$*"
+ fi
+}