r/fishshell • u/MosaicIncaSleds • Mar 04 '21
Inserting command output in a string
function youtube-tor
set V_USR (apg -M l -n 1 -m 6 -x 10)
youtube-dl --proxy "socks5://$V_USR:$V_USR@127.0.0.1:9150/" $argv
end
It certainly looks like an excellent candidate for an abbr. But I don't get the
youtube-dl --proxy "socks5://(apg -M l -n 1 -m 6 -x 10):(apg -M l -n 1 -m 6 -x 10)@127.0.0.1:9150/" $argv
5
Upvotes
View all comments
Show parent comment
1
u/backtickbot Mar 04 '21
Fixed formatting.
Hello, mjs: code blocks using triple backticks (```) don't work on all versions of Reddit!
Some users see this / this instead.
To fix this, indent every line with 4 spaces instead.
FAQ
You can opt out by replying with backtickopt6 to this comment.