set terminal tab name to the base name of $PWD after each cd
This commit is contained in:
parent
b462ea6cd9
commit
ca5c8e5102
1 changed files with 2 additions and 0 deletions
|
|
@ -272,6 +272,8 @@ function cd () {
|
|||
else
|
||||
builtin cd "$1"
|
||||
fi
|
||||
tabname=$(basename $(pwd))
|
||||
printf "\e]1;${tabname}\a"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue