refugee from lemmy.sdf.org

  • 0 Posts
  • 3 Comments
Joined 3 months ago
cake
Cake day: January 9th, 2026

help-circle

  • When you do aliased commands, can they take arguments? Like to download a playlist with yt-dlp, could i do download-playlist [URL]?

    They don’t take arguments in the sense that functions do but in bash at least they are passed on as part of the expanded string. Pasted from bash:

    alias argtest='echo arg is'  
    argtest foo  
    arg is foo  
    

    So yes you could alias your yt-dlp commands and invoke the alias with the URL.