you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 8 months ago (8 children)

I’m not familiar with the -p flag on Firefox but in general, adding & to the end of your command backgrounds it and disown detaches it from your shell so it doesn’t close.

firefox -p &; disown should do what you’re looking for, if I’m understanding you right

  • source
  • hideshow 8 child comments
  • [–] [S] 1 point 8 months ago (5 children)

    ~$ firefox -p &; disown bash: syntax error near unexpected token `;'

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 8 months ago (3 children)

    Looks like I’ve gotten too spoiled with zsh, I guess that doesn’t work with bash. Doing it in two separate commands should work tho, ie firefox -p & and then disown

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 8 months ago* (last edited 8 months ago) (2 children)

    it should be enough to put a space between & and ; like this: firefox -p & ; disown but I'm not 100% sure.

    I'm also very spoiled by zsh, and I also remember encountering this issue.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 8 months ago (1 child)

    I actually started up bash to test this when op first responded, and the space had the same problem

  • source
  • parent
  • hideshow 1 child comment