|
Is there a way to make finch tile it's 'windows'? I'm getting tired of constantly having to alt+m / r things around. If not, is there another console-based solution like finch that supports tiling?
|
# ¿ Mar 13, 2015 00:55 |
|
|
# ¿ May 14, 2024 21:37 |
|
I'm trying to learn how to best write shell scripts. I have the following script for downloading YouTube videos as MP3 and injecting them with metadata + cover art:code:
code:
pre:music url1 && music url2
|
# ¿ Mar 12, 2024 01:39 |
|
Thanks for those replies, that is a huge help.hifi posted:So, is yt-dlp returning an error? why do you have the $SHELL at the end there? etc Adding $SHELL to the end is (supposedly) to ensure the script doesn't kill my shell and drop my ssh connection. At least that's what superuser says haha pseudorandom name posted:Also you don't need a shell alias, ~/bin and ~/.local/bin are probably already in your path. Volguus posted:Just make your script executable (chmod u+x) and remove the exec in the alias and you should be golden.
|
# ¿ Mar 12, 2024 01:52 |
|
Cool, thank you.
|
# ¿ Mar 12, 2024 01:58 |
|
hifi posted:If it only runs the first one then it's returning something other than zero; '&&' is a logical AND, so if the first one is false then there's no way the entire statement can be anything other than false. How do I debug this? Is there an equivalent of try/catch for bash scripts?
|
# ¿ Mar 12, 2024 01:59 |
|
Yeah. It works nicely with the exec and $SHELL removed. Thanks everyone.Saukkis posted:That sounds like a weird idea, never seen that used before. If you have the link to that advice I'd be interested to see it.
|
# ¿ Mar 12, 2024 02:13 |
|
Yaoi Gagarin posted:just to explain why that question is different from your situation - they want to run the script with a double-click and have it leave the terminal open. you are just trying to run the script from an already open terminal. in your case when the script finishes running you just get back to your current shell anyway. Much appreciated, that makes sense.
|
# ¿ Mar 12, 2024 02:17 |
|
|
# ¿ May 14, 2024 21:37 |
|
Inceltown posted:Just as a side note to all the stuff you've got, you can use $@ so the script will read an arbitrary number of file names instead of having to chain together Ahhh that's perfect, thanks.
|
# ¿ Mar 12, 2024 04:45 |