Skip to content

chore(zellij): pin new tabs/panes to home directory - #54

Merged
catomean merged 1 commit into
masterfrom
chore/zellij-default-cwd
Aug 28, 2026
Merged

chore(zellij): pin new tabs/panes to home directory#54
catomean merged 1 commit into
masterfrom
chore/zellij-default-cwd

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Summary

  • New zellij tabs/panes were inheriting the focused pane's cwd, so opening a tab while sitting in dotfiles or a repo worktree started the new shell (and any agent session) there too — the mechanism behind files meant for another project landing in dotfiles.
  • Sets default_cwd "/home/g" so new tabs/panes always start neutral in the home directory; project work still requires an explicit cd.

Test plan

  • bash -n / kdl syntax sanity (config parses, zellij starts)
  • After next zellij session restart, open a new tab from within a repo directory and confirm it opens in /home/g

New tabs inherited the focused pane's cwd, so opening a tab while sitting
in dotfiles or a repo worktree started the new shell (and any agent
session in it) there too — how files meant for another project ended up
written into dotfiles. default_cwd pins new tabs/panes to $HOME so every
new tab starts neutral.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@catomean
catomean force-pushed the chore/zellij-default-cwd branch from 75c7ff3 to c5d9337 Compare August 28, 2026 07:43
@catomean
catomean merged commit 125560f into master Aug 28, 2026
1 check passed
@catomean
catomean deleted the chore/zellij-default-cwd branch August 28, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant