55concurrently will by default prefix each command's outputs with a zero-based index, wrapped in square brackets:
66
77``` bash
8- $ concurrently " echo Hello there" " echo 'General Kenobi!'"
8+ $ concurrently ' echo Hello there' " echo 'General Kenobi!'"
99[0] Hello there
1010[1] General Kenobi!
1111[0] echo Hello there exited with code 0
@@ -15,7 +15,7 @@ $ concurrently "echo Hello there" "echo 'General Kenobi!'"
1515If you've given the commands names, they are used instead:
1616
1717``` bash
18- $ concurrently --names one,two " echo Hello there" " echo 'General Kenobi!'"
18+ $ concurrently --names one,two ' echo Hello there' " echo 'General Kenobi!'"
1919[one] Hello there
2020[two] General Kenobi!
2121[one] echo Hello there exited with code 0
@@ -36,7 +36,7 @@ There are other prefix styles available too:
3636Any of these can be used by setting the ` --prefix ` /` -p ` flag. For example:
3737
3838``` bash
39- $ concurrently --prefix pid " echo Hello there" " echo ' General Kenobi!'"
39+ $ concurrently --prefix pid ' echo Hello there' ' echo General Kenobi!'
4040[2222] Hello there
4141[2223] General Kenobi!
4242[2222] echo Hello there exited with code 0
@@ -47,7 +47,7 @@ It's also possible to have a prefix based on a template. Any of the styles liste
4747Doing so will also remove the square brackets:
4848
4949``` bash
50- $ concurrently --prefix " {index}-{pid}" " echo Hello there" " echo ' General Kenobi!'"
50+ $ concurrently --prefix ' {index}-{pid}' ' echo Hello there' ' echo General Kenobi!'
51510-2222 Hello there
52521-2223 General Kenobi!
53530-2222 echo Hello there exited with code 0
@@ -62,7 +62,7 @@ This can be changed by using the `--prefix-colors`/`-c` flag, which takes a comm
6262The available values are color names (e.g. ` green ` , ` magenta ` , ` gray ` , etc), a hex value (such as ` #23de43 ` ), or ` auto ` , to automatically select a color.
6363
6464``` bash
65- $ concurrently -c red,blue " echo Hello there" " echo ' General Kenobi!'"
65+ $ concurrently -c red,blue ' echo Hello there' ' echo General Kenobi!'
6666```
6767
6868<details >
@@ -82,7 +82,7 @@ $ concurrently -c red,blue "echo Hello there" "echo 'General Kenobi!'"
8282Colors can take modifiers too. Several can be applied at once by prepending ` .<modifier 1>.<modifier 2> ` and so on.
8383
8484``` bash
85- $ concurrently -c red,bold.blue.dim " echo Hello there" " echo ' General Kenobi!'"
85+ $ concurrently -c red,bold.blue.dim ' echo Hello there' ' echo General Kenobi!'
8686```
8787
8888<details >
@@ -101,7 +101,7 @@ $ concurrently -c red,bold.blue.dim "echo Hello there" "echo 'General Kenobi!'"
101101A background color can be set in a similary fashion.
102102
103103``` bash
104- $ concurrently -c bgGray,red.bgBlack " echo Hello there" " echo ' General Kenobi!'"
104+ $ concurrently -c bgGray,red.bgBlack ' echo Hello there' ' echo General Kenobi!'
105105```
106106
107107<details >
@@ -124,7 +124,7 @@ When using the `command` prefix style, it's possible that it'll be too long.<br/
124124It can be limited by setting the ` --prefix-length ` /` -l ` flag:
125125
126126``` bash
127- $ concurrently -p command -l 10 " echo Hello there" " echo ' General Kenobi!'"
127+ $ concurrently -p command -l 10 ' echo Hello there' ' echo General Kenobi!'
128128[echo..here] Hello there
129129[echo..bi! ' ] General Kenobi!
130130[echo..here] echo Hello there exited with code 0
@@ -135,7 +135,7 @@ It's also possible that some prefixes are too short, and you want all of them to
135135This can be done by setting the ` --pad-prefix ` flag:
136136
137137``` bash
138- $ concurrently -n foo,barbaz --pad-prefix " echo Hello there" " echo ' General Kenobi!'"
138+ $ concurrently -n foo,barbaz --pad-prefix ' echo Hello there' ' echo General Kenobi!'
139139[foo ] Hello there
140140[foo ] echo Hello there exited with code 0
141141[barbaz] General Kenobi!
0 commit comments