BUG: window-inherit-working-directory doesn't work #8000
Replies: 3 comments 3 replies
-
With some trial and error i think i found the problem. I have set in
If i remove this ghostty work as expected. Now, why it has some problems when i set a custom ZDOTDIR? |
Beta Was this translation helpful? Give feedback.
-
I found the solution: Move the contents of |
Beta Was this translation helpful? Give feedback.
-
note you shouldn't need to set anything both of them have defaults https://ghostty.org/docs/config/reference#working-directory https://ghostty.org/docs/config/reference#window-inherit-working-directory it does require shell integration to work just because it says it loaded doesn't mean something in your shell config how the default shell integration is injected shell-integration says it shouldn't mess up your existing ZDOTDIR but i don't know how that works maybe manually sourcing shell-integration would work better for you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When setting:
in my config i expect that when i open a new window it should have the same path as the older one, instead I get the default home. Starting ghostty from the .desktop and terminal doesn't change anything.
To debug the issue I've compiled ghostty from source and logged the pwd value when opening a new windows, it is null. I think this may be some shell integration problem but in the log i see this:
so it seems that the shell integration is loaded.
I'm using Arch Linux with zsh.
Expected Behavior
Ghostty should open a new window in the previous window directory
Actual Behavior
Ghostty opens the new window in the home
Reproduction Steps
Open Ghostty
press ctrl+shift+n
Ghostty Logs
No response
Ghostty Version
OS Version Information
Arch Linux
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
Hyprland
Minimal Ghostty Configuration
Additional Relevant Configuration
Manually sourcing the shell integration in my zsh config doesn't help.
I acknowledge that:
```
) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions