DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for TIL that how to change terminal title
kambala yashwanth
kambala yashwanth

Posted on

TIL that how to change terminal title

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"

Top comments (0)

🌚 Life is too short to browse without dark mode