aboutsummaryrefslogtreecommitdiffstats
path: root/run_host.go
diff options
context:
space:
mode:
Diffstat (limited to 'run_host.go')
-rw-r--r--run_host.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_host.go b/run_host.go
index 4a74a7b..be7c158 100644
--- a/run_host.go
+++ b/run_host.go
@@ -10,5 +10,10 @@ import (
func command(distribution Distribution, config Config) (*exec.Cmd, error) {
// Append the additional arguments to the command
args := append([]string{"-d", distribution.Name}, config.WslArgs...)
+ // Set the title of the terminal window
+ err := exec.Command("cmd", "/c", "title", distribution.Name).Run()
+ if err != nil {
+ return nil, err
+ }
return exec.Command("wsl", args...), nil
}