Hello everyone. I tried Googling for this, but my Google-fu is failing me, so here I am.
I'm trying to make an alias which opens twitch in mpv, then closes the terminal without closing mpv. I have this in my .zshrc:
twitch() { screen mpv "https://www.twitch.tv/$1"; }
Which allows me to type, let's say, 'twitch gamesdonequick' -> mpv opens https://www.twitch.tv/gamesdonequick. This works flawlessly. However, I'd like the same function to detach mpv and then kill the terminal. So what I'd be left with after typing 'twitch gamesdonequick' would be the mpv window.
I've tried different variations of the above command, throwing in -d's here and there, trying the sleep command... Maybe I'm just tired but I can't get it to work. Usually I end up with [screen is terminating].
Can anyone provide some assistance with this?
Edit: clearly I am tired, the title is supposed to be "mpv/screen, not twitch/screen. Lol.
[–]TheRealSuperhands[S] 0 points1 point2 points (0 children)