Created
April 10, 2019 20:56
-
-
Save openstacker/14ebf70d612181178fb079f9a1fe6129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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