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
- X-seq: zsh-users 20416
- From: John <da_audiophile@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Re: Errors with my youtube-dl function in ~/.zshrc but I am unsure why
- Date: Sun, 16 Aug 2015 16:43:23 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1439743403; bh=/k6gXopClqAyqDXbTJEV0FmLRmnKR04kIuIeynvIUTc=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=ForSVN2/EL6PBC/d00ei2EyDWtur6mT+7DUwBZpPDGiu7qxTm23lchJLW+KY9FwVqhR74TTdBDDST2S568MFjXMBOLmmSFFnCD78k/VlfXmYaIZKxBNsXLB7KQXp90aP1+WQg3Wkgb2cT6n1UiDqvMdCHTyEZE1T+4GRIjGknQ/YvvTR4UY/e4W+DcO4OGU7m0bn1Usf3J2cqmxHY06As03M4yfYj8OZxqU7V4q37MZPH/+lSuz+vLRuvH4mbgurLLvEt7mwv5sQDAIMR0FfjuZNsOCW0bQZ4rfBJQ9vJjRWDAI2hFh3rySlZPd9nR+FrZeQoYLt+R3x/FYuUWtUCw==
- In-reply-to: <150816093722.ZM12415@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <150816093722.ZM12415@torch.brasslantern.com>
- Reply-to: John <da_audiophile@xxxxxxxxx>
----- 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