4 ms·
Yep, zsh, and most likely fish and other shells manage to keep all your commands in the history, no matter how many sessions you open.
by jraph 3y ago
Yep, zsh, and most likely fish and other shells manage to keep all your commands in the history, no matter how many sessions you open.
- calmoo 3y agoI find this can be a bit messy because VS code runs lots of commands in the background that pollute the history with extremely verbose commands.
- deleted 3y ago[deleted]
- wruza 3y agoWhy does it run them in interactive shells? Not surpising given it’s Microsoft, but still worth reporting an issue.
- hnlmorg 3y agoI can’t speak for VSC specifically (I don’t like their terminal emulator so don’t have enough experience using it) but I do know some other applications “paste” (for want a better word) commands into the script interactive shell because they purpose of the shell being open is to provide a REPL and the GUI application just provides a few useful graphical hooks to it. Regarding the history problem, there’s likely a flag VSC can pass to Zsh to disable writing to history for that session. Edit: looks like there are several ways: https://unix.stackexchange.com/questions/692913/temporarily-disable-history-in-zsh https://unix.stackexchange.com/questions/692913/temporarily-...