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
} 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'
Note you want the alias declaration after the function definition.
There's no way to include it inside the function itself because the
glob is attempted before the function is called.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author