zsh-users
 help / color / mirror / code / Atom feed
* Errors with my youtube-dl function in ~/.zshrc but I am unsure why
@ 2015-08-16  6:32 John
  2015-08-16  6:44 ` Eric Cook
  0 siblings, 1 reply; 9+ messages in thread
From: John @ 2015-08-16  6:32 UTC (permalink / raw)
  To: zsh-users

Why does zsh complain about no matches when I invoke my yt function and how can I correct the code?  Thanks!

>From ~/.zshrc:
 yt() { [[ -z "$1" ]] || noglob youtube-dl -q "$1" &; }

Output of command:
 % yt https://www.youtube.com/watch?v=OC1JiAUr3ZU                                                     :(
 zsh: no matches found: https://www.youtube.com/watch?v=OC1JiAUr3ZU

Please note that I am not subscribed to the ML so please cc me in the reply.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-17 21:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-16  6:32 Errors with my youtube-dl function in ~/.zshrc but I am unsure why John
2015-08-16  6:44 ` Eric Cook
2015-08-16  6:54   ` John
2015-08-16 16:37     ` Bart Schaefer
2015-08-16 16:43       ` John
2015-08-16 17:23         ` Bart Schaefer
2015-08-17 21:58       ` zzapper
2015-08-16 16:43     ` Gowtham M
2015-08-16 21:54       ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).