From: PHO Date: Tue, 6 Jan 2009 13:24:21 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=sugar.git;a=commitdiff_plain;h=8f1d3a1528cf6e952584c1ddf5694e60230930b1 Auto commit by The Sugar System. --- diff --git a/dot-files/_zshrc b/dot-files/_zshrc index fc238a3..b3677dd 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -58,6 +58,8 @@ function _we_are_in_gnu_screen () { _prompt_base='%{%(?.$fg[green].$fg[red])%}%B[%n@%m] %#%b %{$reset_color%}' if ( _we_are_in_gnu_screen ); then + # Magic escape sequence for GNU Screen to update their titles + # dynamically by grabbing prompt line. PROMPT=$'%{\ek\e\\%}'$_prompt_base else PROMPT=$_prompt_base