summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mac-dev-start8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mac-dev-start b/scripts/mac-dev-start
index 350edbafcf..97d92edaef 100755
--- a/scripts/mac-dev-start
+++ b/scripts/mac-dev-start
@@ -32,7 +32,13 @@ def activate_terminal
end
def start_service_in_last_tab(window,service)
- app('Terminal').do_script(BASE_CMD+service, :in => window.tabs.last.get)
+ # use xterm escape codes to set the tab title to the service running in the tab.
+ cmd =
+ "unset PROMPT_COMMAND; echo -e \"\\033]0;#{service}\\007\"; " +
+ BASE_CMD +
+ service
+
+ app('Terminal').do_script(cmd, :in => window.tabs.last.get)
sleep DELAY
end