diff --git a/Lanayo.VagrantManager/App.cs b/Lanayo.VagrantManager/App.cs index e509bb4..056db89 100644 --- a/Lanayo.VagrantManager/App.cs +++ b/Lanayo.VagrantManager/App.cs @@ -120,7 +120,7 @@ private void ShowUpdateNotificationPreferenceChanged(Notification notification) public void PerformVagrantAction(string action, VagrantInstance instance) { if (action == "ssh") { - action = String.Format("cd /d {0} && vagrant ssh", Util.EscapeShellArg(instance.Path)); + action = String.Format("cd /d {0} && title {1}--{0} && vagrant ssh", Util.EscapeShellArg(instance.Path), instance.DisplayName); this.RunTerminalCommand(action); } else { this.RunVagrantAction(action, instance); @@ -128,7 +128,7 @@ public void PerformVagrantAction(string action, VagrantInstance instance) { } public void PerformVagrantAction(string action, VagrantMachine machine) { if (action == "ssh") { - action = String.Format("cd /d {0} && vagrant ssh {1}", Util.EscapeShellArg(machine.Instance.Path), machine.Name); + action = String.Format("cd /d {0} && title {1}--{0} && vagrant ssh {1}", Util.EscapeShellArg(machine.Instance.Path), machine.Name); this.RunTerminalCommand(action); } else { this.RunVagrantAction(action, machine);