-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure breaking ZSH sessions on login - Saving session...
#664
Comments
Just a heads up that I'm still seeing this issue in macOS Sonoma 14.4 using the latest version of Pure (installed via Git instead of HomeBrew):
|
@ziadoz I'm not able to reproduce, have you checked your |
@mafredri It's tricky to reproduce as it doesn't always happen since I switched to macOS Sonoma. I've stripped my
Then I open Terminal, run
I'm on a fresh install of macOS Sonoma, so nothing in My dotfiles configuration is here if that's any help: https://github.com/ziadoz/dotfiles/tree/master/zsh |
I started my laptop up after having had it shut down for a few days, and Terminal started with this message, which I haven't seen before:
|
General information
System report (output of
prompt_pure_system_report
):Other information
I have:
Problem description
Using the
exec $SHELL -l
command breaks ZSH's session files.I've stripped my
.zshrc
down to only Homebrew and Pure. With Pure enabled the session file contains the textSaving session...
, which causes acommand not found: Saving
error. If I comment out Pure this text does not leak into the session file and no errors occur.Reproduction steps
Copy stripped back
.zshrc
below into~/
.Run login command:
Notice the text
Saving session...
has leaked into the session file.This text comes from
shell_session_save()
in/etc/zshrc_Apple_Terminal
, but it only leaks into the session file when Pure is enabled. When Pure is commented out the session file does not contain this text and is restored without errors.My
.zshrc
:The text was updated successfully, but these errors were encountered: