Skip to content

Instantly share code, notes, and snippets.

@openstacker
Created April 10, 2019 20:56
Show Gist options
  • Save openstacker/14ebf70d612181178fb079f9a1fe6129 to your computer and use it in GitHub Desktop.
Save openstacker/14ebf70d612181178fb079f9a1fe6129 to your computer and use it in GitHub Desktop.
In ubuntu 14.04 you could set a shortcut key, but it looks like you can't do that anymore is 16.04. Luckily, someone posted a solution on Ask Ubuntu.
Simply edit your $HOME/.bashrc file and add the following function:
set-title(){
ORIG=$PS1
TITLE="\e]2;$@\a"
PS1=${ORIG}${TITLE}
}
Copy
Now whenever you want to set the title of your terminal, just enter something like:
set-title "my awesome terminal title"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment