fix(zellij): fix CWD tracking in fish for zellij tabs

This commit is contained in:
Noah Masur
2026-08-24 19:52:22 -06:00
parent 5ecefd4589
commit b0b08d2475
2 changed files with 12 additions and 0 deletions
@@ -75,6 +75,17 @@ in
${lib.getExe pkgs.zellij} action new-pane --start-suspended -- gh run watch
'';
};
__fish_update_cwd_osc = {
description = "Notify Zellij/terminal of CWD changes without hostname mismatch";
body = # fish
''
if test "$TERM" != "dumb"
printf \e\]7\;file://%s\a (string escape --style=url -- $PWD)
end
'';
onVariable = "PWD";
onEvent = "fish_prompt";
};
};
};