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.
--depth=1
? I use this all the time when I clone the kernel.Edit: reread that you wanted to download code at a particular commit.