elvish_config/aliases/youtube-dl.elv

14 lines
227 B
Plaintext
Raw Normal View History

var cmd = $e:yt-dlp~
2021-12-11 21:09:02 +00:00
fn -dl {|@argv|
$cmd --no-check-certificate $@argv
}
2021-12-11 21:09:02 +00:00
fn -audio {|@argv|
-dl -x --audio-format best $@argv
}
2021-12-11 21:09:02 +00:00
edit:add-var yt-dl~ {|@argv| -dl $@argv }
edit:add-var yt-audio~ {|@argv| -audio $@argv }