when i am working from the command line, i often use some shortcuts to open links in google-chrome.
i do that for example with:
google-chrome "https://stackoverflow.com" "https://github.com"
now i have to things i like to solve:
when google chrome isnt open yet: chrome will be launched with the link. This is fine, except the fact, that google-chrome automatically closes, when i close my terminal. How can I have it in the way, that chrome stays open, even when i close my terminal from where i launched chrome?
when google-chrome is already open, i sometimes already have the link openened, which i then open in a second tab again. so i have the same link opened twice. This often happens, when i relaunch my tmux-session with tmuxinator QUESTION: how can i programatically check (for example with bash) if the link, the command tries to open, is already open? I want to do a refresh for that case.
Do you have any tipps for automating this, which tool i can best use for that? Maybe there is an api for google-chrome my code can talk to or is there some chrome app i can use for that?
Thank you in advance!
From a long time, but:
"&" is to free the cursor and be able to use the terminal
"nohup" is to run and not die when closing the terminal
Most of the times, only the "&" is fine. Try it like this...