How to change default terminal's name to something dynamic in IntelliJ?

Viewed 177

I have been using IntelliJ's integrated terminal quite a lot recently. More often than not, I have 10+ tabs open. I was looking for a way to rename the said tab based on the current directory. It gets really confusing to have so many tabs, so I have to resort to manually rename each tab by right clicking and doing "rename session". E.g.:

enter image description here

Is there a way to setup the terminal tab name in IntelliJ to something dynamic/configurable based on a script or anything smarter than a static string?

Things I've tried:

  • E.g. something like echo -ne "\e]1;$PWD\a", which was discussed in this answer here. However this doesn't yield any results, and tab name remains unchanged.
  • I have also tried setting the "Tab name" in IDEA's preferences, as seen below. I tried setting it to $(PWD), but that did not work. It remains stuck to that static string.

enter image description here

0 Answers
Related