From ca5c8e51022370b32cd46f2568b1bfbb9c84c35d Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 11 Oct 2012 22:24:22 -0700 Subject: [PATCH] set terminal tab name to the base name of $PWD after each cd --- zsh/zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 51232b7..8d64904 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -272,6 +272,8 @@ function cd () { else builtin cd "$1" fi + tabname=$(basename $(pwd)) + printf "\e]1;${tabname}\a" }