set terminal tab name to the base name of $PWD after each cd

This commit is contained in:
Sami Samhuri 2012-10-11 22:24:22 -07:00
parent b462ea6cd9
commit ca5c8e5102

View file

@ -272,6 +272,8 @@ function cd () {
else
builtin cd "$1"
fi
tabname=$(basename $(pwd))
printf "\e]1;${tabname}\a"
}