X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_zshrc;h=b3677dd17cef106cb89bd46c18f0f70011661577;hb=8f1d3a1528cf6e952584c1ddf5694e60230930b1;hp=fc238a3f8a656a67b3c739a3ce1d4264855544fe;hpb=898c1001bb9463ba26cbdcb32466b39660225027;p=sugar.git 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