microsoft / inshellisense

IDE style command line auto complete
MIT License
8.22k stars 180 forks source link

Terminal command history not preserved after reopening #265

Closed ahmet-cetinkaya closed 2 days ago

ahmet-cetinkaya commented 4 days ago

Describe the bug After reopening the terminal, I cannot access command history.

To Reproduce Steps to reproduce the behavior:

  1. Open the terminal.
  2. Execute commands such as command1, command2, etc.
  3. Close the terminal.
  4. Reopen the terminal.
  5. Try using arrow keys or any other method to access previous commands.

Expected behavior I expected to be able to navigate through my command history using the arrow keys after reopening the terminal.

Environment

Additional context

ahmet-cetinkaya commented 2 days ago

it have fixed when I added the following lines to the .zshrc file.

SAVEHIST=1000  # Save most-recent 1000 lines
HISTFILE=~/.zsh_history