I use a fish function that runs whenever the current working directory changes to update the name of the active pane:
if set -q ZELLIJ
function zellij_update_name --on-variable PWD
if test $PWD = $HOME
set -f directory '~'
else
set -f directory $(basename $PWD)
end
zellij action rename-pane $directory
end
zellij_update_name
end
Sometimes when creating a new tab, the pane title is duplicated, e.g. instead of the pane being named ~, it's named ~~, as seen in the screenshot below.
Somewhat related, it would be useful to be able to disable the automatic name assignment from Zellij.
I use a fish function that runs whenever the current working directory changes to update the name of the active pane:
Sometimes when creating a new tab, the pane title is duplicated, e.g. instead of the pane being named
~
, it's named~~
, as seen in the screenshot below.Somewhat related, it would be useful to be able to disable the automatic name assignment from Zellij.