Skip to content

Instantly share code, notes, and snippets.

@samsonjs

samsonjs/some.sh

Forked from tj/some.sh
Created Oct 12, 2012
Embed
What would you like to do?
change terminal tab name on cd
tabname() {
printf "\e]1;$1\a"
}
cd() {
if [[ $# -gt 0 ]]; then
builtin cd "$*"
else
builtin cd
fi
tabname $(basename $(pwd))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment