summaryrefslogtreecommitdiff
path: root/etc/functions/youtube-watch
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-04 18:54:55 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-04 18:54:55 +0100
commit9ff806a2799e74d038692fc95a53adb3ba33eebd (patch)
treeaf3ce9f5a4ac73a1db392c767ece6796675e4aba /etc/functions/youtube-watch
parent0acec246f225db567efcea5b904885a412ba56b8 (diff)
youtube-watch: Pass additional arguments to mplayer
Diffstat (limited to 'etc/functions/youtube-watch')
-rwxr-xr-xetc/functions/youtube-watch5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch
index fd60edf..ccf096d 100755
--- a/etc/functions/youtube-watch
+++ b/etc/functions/youtube-watch
@@ -1 +1,4 @@
-mplayer $(youtube-dl -g $1)
+## vim:ft=zsh
+typeset video=$1
+shift
+mplayer $* $(youtube-dl -g $video)