DEV Community

loading...
Cover image for TIL that how to change terminal title

TIL that how to change terminal title

kambala yashwanth
I ❤️ JavaScript > any other ☕ logo languages
・1 min read

What I Learned

Being a dev I mostly rely on terminal running react and multiple springboot jars and mongodb in side by side .

1) open ~./bashrc file and Add this at the end of the file

termtitle() { PROMPT_COMMAND='echo -ne "\033]0; '$1' \007"'; }

2) Applying changes

source ~/.bashrc

3) Change Terminal title

termtitle "my title"

Discussion (0)