• felsiq@piefed.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    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

    • tdTrX@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

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

      • felsiq@piefed.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        8 months ago

        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