You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Opening a nix-shell in the Terminal console creates a shell which loads session history from ~/.bash_history, but appends new commands to the specific session history file in ~/.bash_sessions/`. The result is that you can't access your previous commands in the nix-shell like you usually can in a shell.
A workaround is to set SHELL_SESSION_HISTORY to 0 in the .bashrc to disable the unique session history feature.
Steps To Reproduce
Open Terminal on Mac OS.
Open a new nix-shell.
Enter some commands.
Exit the nix-shell.
Re-enter nix-shell. Attempt to access commands from previous session history. They will not be present.
Expected behavior
I should be able to access my session history from previous sessions.
nix-env --version output
nix-env (Nix) 2.10.2
Additional context
Terminal Version 2.14 (254)
macOS Sonoma 14.3
Apple M1 Pro
Describe the bug
Opening a nix-shell in the Terminal console creates a shell which loads session history from
~/.bash_history
, but appends new commands to the specific session history file in ~/.bash_sessions/`. The result is that you can't access your previous commands in the nix-shell like you usually can in a shell.A workaround is to set
SHELL_SESSION_HISTORY
to 0 in the.bashrc
to disable the unique session history feature.Steps To Reproduce
Expected behavior
I should be able to access my session history from previous sessions.
nix-env --version
outputAdditional context
Terminal Version 2.14 (254)
macOS Sonoma 14.3
Apple M1 Pro
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: