Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why






----- Original Message -----
> From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>; John <da_audiophile@xxxxxxxxx>
> Cc: 
> Sent: Sunday, August 16, 2015 12:37 PM
> Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
> 
> } In the past (month ago), this function worked as-is calling the
> } command prefixed by noglob as you recommended. Is there any way I can
> } roll it into the function?
> 
> Do you mean it previously worked WITHOUT prefixing by noglob?
> 
> Has the version of zsh you are using changed during that time?
> 
> 
> The easiest thing to do is this:
> 
>     yt() { [[ -z "$1" ]] || noglob youtube-dl -q "$1" 
> &; }
>     alias yt='noglob yt'


Excellent, thank you.  Yes, it did work as the function only some months ago (I rarely use it but found that it wasn't working now).  Zsh on my distro has updated since then (now running 5.08).  Minor note, I removed the noglob in the function so the relevant lines read:

 yt() { [[ -z "$1" ]] || youtube-dl -q "$1" &; }
 alias yt='noglob yt'



Messages sorted by: Reverse Date, Date, Thread, Author