• A Basil Plant@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    I’m unsure whether your formatting messed up, but you shouldn’t have a space between the shebang (#!) and the interpreter path (/bin/bash). Also add a new line before your command:

    #!/bin/bash
    
    gnome-terminal -- sh -c gotop
    

    I tried this on my system (with htop instead of gotop) and it worked.