Skip to content

Run tasks in different terminals #1268

Answered by andreynering
ivan-kleshnin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ivan-kleshnin,

I honestly just open terminal windows/tabs manually and run each task on its own window/tab.

We don't have any plans to build a feature to support that. Since each system is different, it would be impossible to have a solution that works everywhere.

If the commands you linked works (I haven't tried them), nothing stops you from adding them to your Taskfile. Something like:

version: '3'

tasks:
  echo: '{{if .EXTERNAL}}gnome-terminal -- {{end}} echo hello world'
task echo EXTERNAL=1

or:

version: '3'

tasks:
  echo: '{{.PREFIX}} echo hello world'
task echo PREFIX="gnome-terminal -- "

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ivan-kleshnin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants