diff options
author | Adam Jacob <adam@opscode.com> | 2010-02-08 16:39:20 -0800 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2010-02-08 16:39:20 -0800 |
commit | 4a8a8bf9ef69bc264c687d1fbe38732e33e42b0c (patch) | |
tree | 83092fbbeeb643c6772c3280907343b22d2b6ff4 /scripts | |
parent | 3de000cee6d8a3e7fa803b6d822d97f80b65cc15 (diff) | |
parent | a845bc55eb5e18b4df42a65636d2ba0d75850d6f (diff) | |
download | chef-4a8a8bf9ef69bc264c687d1fbe38732e33e42b0c.tar.gz |
Merge branch 'CHEF-925' of git://github.com/timh/chef into timh/CHEF-925
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mac-dev-start | 8 |
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 |