How does automatic pane naming work? Is it possible to adjust it? #2848
-
I noticed that depending on what shell I'm using the way of naming
So my question is, where does Zellij gets the pane name information from? I guess it must be from the shell somehow, if yes can I adjust my shell config to change the way of naming panes when switching folders, or should I create Zellij plugin to handle this? In case of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It seems to be based on terminal title. That can be set through:
Probably every time a command is run (so it updates on cwd changing, or other things). That can be done like this in your .zshrc for zsh:
There's probably more idiomatic ways to set terminal title, but the above at least works for zsh. Unsure about other shells. It took me forever to find this out through trying random things - it's undocumented. I found this post before I figured it out, and my reaction was literally https://xkcd.com/979/. |
Beta Was this translation helpful? Give feedback.
It seems to be based on terminal title. That can be set through:
Probably every time a command is run (so it updates on cwd changing, or other things). That can be done like this in your .zshrc for zsh:
There's probably more idiomatic ways to set terminal title, but the above at least works for zsh. Unsure about other shells.
It took me forever to find this out through trying random things - it's undocumented. I found this post before I figured it out, and my reaction was literally https://xkcd.com/979/.