From 611a65d1c8681b28220f8852e9686ebbe9e6adc7 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 18 Jun 2012 15:38:29 -0400 Subject: [PATCH] modified prompt title, so its less confusing. --- .zsh/zsh_hooks.zsh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.zsh/zsh_hooks.zsh b/.zsh/zsh_hooks.zsh index 941d711..2fc5e88 100644 --- a/.zsh/zsh_hooks.zsh +++ b/.zsh/zsh_hooks.zsh @@ -1,12 +1,9 @@ #hooks -function precmd { - # vcs_info - # Put the string "hostname::/full/directory/path" in the title bar: - echo -ne "\e]2;$PWD\a" - - # Put the parentdir/currentdir in the tab - echo -ne "\e]1;$PWD:h:t/$PWD:t\a" -} +case $TERM in + xterm*) + precmd () {print -Pn "\e]0;%n@%m: %~\a"} + ;; +esac function set_running_app { printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"