Skip to content

Instantly share code, notes, and snippets.

@openstacker
Created March 26, 2020 21:54
Show Gist options
  • Save openstacker/5fa36e87647a2a9047a071a77fe4490d to your computer and use it in GitHub Desktop.
Save openstacker/5fa36e87647a2a9047a071a77fe4490d to your computer and use it in GitHub Desktop.
set terminal title
set-title(){
ORIG=$PS1
TITLE="\e]2;$@\a"
PS1=${ORIG}${TITLE}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment