help-circle
rss

Heres a good response on SO: https://unix.stackexchange.com/questions/223432/in-zsh-how-can-i-more-quickly-disown-the-foreground-process/223433#223433

Having a global keybind to disown the foreground process is impossible: Keystrokes are received by the foreground process, not by the shell. You need to first suspend it with Ctrl+z if you want to disown it.

However, turns out there’s a zsh option to speed up disowning then continuing: With setopt AUTO_CONTINUE, disown will automatically also send SIGCONT.

So you can get it down to C-z disown.


nice catch!
I constantly switch between Js and python, and cant remember the differences lol
yeah, the --help generation is a very convenient part of the libs.
I just wrote this to demonstrate the simplest possible answer.



you have a really simple use-case, so you probably don’t need and argument parsing lib, which I would normally recommend…

You can just iterate through the arguments array and categorize them by type, then add them to the appropriate collection to be handled later.

Something like this:

ids = []
urls = []
csvs = []
for arg in sys.argv:
  if arg.startswith('http'):
    urls.push(arg)
  else if arg.endswith('.csv'):
    csvs.push(arg)
  else:
    ids.push(arg)

Most screenshot tools allow you to pass a name as an argument, so you could make a shell script to generate the name you want then call the screenshotting tool with the appropriate name. Also, consider using flameshot


List of popular Lemmy communities and their alternatives
cross-posted from: https://sopuli.xyz/post/247640 > Just by checking https://lemmy.ml/communities one can see the most popular communities of lemmy.ml. The plan here is to list all the alternatives for those from other instances. One can also suggest alternatives to be added here and I update this living document. > > * [Linux](https://lemmy.ml/c/linux) --> [!linux@heapoverflow.ml](https://heapoverflow.ml/c/linux) > * [Libre Culture](https://lemmy.ml/c/libre_culture) --> ??? > * [Piracy](https://lemmy.ml/c/piracy) --> ???? > * [Open Source](https://lemmy.ml/c/opensource) --> ??? > * [Ask Lemmy](https://lemmy.ml/c/asklemmy) --> [!askwomen@lemmy.ca](https://lemmy.ca/c/askwomen) > * [Privacy](https://lemmy.ml/c/privacy) --> [!privacy@lemmy.ca](https://lemmy.ca/c/privacy), [privacy@community.nicfab.it](https://community.nicfab.it/c/privacy), [privacy@nrsk.no](https://nrsk.no/c/privacy) > * [Technology](https://lemmy.ml/c/technology) --> [!technology@beehaw.org](https://beehaw.org/c/technology), [!technology@gtio.io](https://gtio.io/c/technology) > * [World News](https://lemmy.ml/c/worldnews) --> [!news@beehaw.org](https://beehaw.org/news) > * [Fediverse](https://lemmy.ml/c/fediverse) --> [!fedizens@lemmy.ca](https://lemmy.ca/c/fedizens), > [!thefedizenenquirer@lemmy.ca](https://lemmy.ca/c/thefedizenenquirer), [!fediverse@midwest.social](https://midwest.social/c/fediverse), > [!fediverselore@lemmy.ca](https://lemmy.ca/c/fediverselore), > [!bestofthefediverse@lemmy.ca](https://lemmy.ca/c/bestofthefediverse) > * [Science](https://lemmy.ml/c/science) --> [!science@beehaw.org](https://beehaw.org/c/science), [!science@mander.xyz](https://mander.xyz/c/science), [!science@gtio.io](https://gtio.io/c/science) > * [Memes](https://lemmy.ml/c/memes) --> [!memes@lemmy.ca](https://lemmy.ca/c/memes), [!memes@sopuli.xyz](https://sopuli.xyz/c/memes), [!politicalcompassmemes@lemmy.perthchat.org](https://lemmy.perthchat.org/c/polcompmemes) > * [Gaming](https://lemmy.ml/c/gaming) --> [!gaming@beehaw.org](https://beehaw.org/gaming) > * [Music](https://lemmy.ml/c/music) --> [!music@sopuli.xyz](https://lemmy.ml/c/music), [!music@baraza.africa](https://baraza.africa/c/music), [!music@beehaw.org](https://beehaw.org/c/music) > * [Politics](https://lemmy.ml/c/politics) --> > [!moderatepolitics@sopuli.xyz](https://sopuli.xyz/c/moderatepolitics), [!politics@beehaw.org](https://beehaw.org/c/politics), [!politics@gtio.io](https://gtio.io/c/politics) > * Programming language communities --> [Heapoverflow.ml](https://heapoverflow.ml/communities) > * [Socialism](https://lemmy.ml/c/socialism) --> [!socialism@midwest.social](https://midwest.social/c/socialism) > * [Anarchism](https://lemmy.ml/c/anarchism) --> [!anarchism@lemmy.ca](https://lemmy.ca/c/anarchism) > * [Green](https://lemmy.ml/c/green) --> slrpnk.net, [environment@beehaw.org](https://beehaw.org/c/environment) > * Late Stage Capitalism etc. --> [!aboringdystopia@mander.xyz](https://mander.xyz/c/aboringdystopia)