kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
22.14k stars 908 forks source link

Stupid question #7371

Closed CocolinoFan closed 3 weeks ago

CocolinoFan commented 3 weeks ago

Hello, sorry for my stupid question, but. How do you make a script to start multiple instances of the kitty terminal with apps running inside of them. I've tried:

#!/bin/bash

/usr/bin/kitty sh -c 'bitcoind' &
/usr/bin/kitty sh -c 'monerod' &

But it seams to only open one terminal running monerod

CocolinoFan commented 3 weeks ago

The answer is the --hold option. For example:

#!/bin/bash

kitty --hold sh -c "echo hello, world" &
kitty --hold sh -c "echo hello again, world" &