When working with Visual Studio Code DevContainers and using zsh as your default shell, you may encounter an annoying issue: instead of loading the familiar ~/.zshrc and writing history to ~/.zsh_history, VSCode suddenly uses a temporary directory such as /tmp/xyz-code-zsh/.zsh_history. As a result, important shell settings are lost and your history is no longer persistent.
Category: Zsh
Z Shell is a powerful, extensible shell with features like auto-completion, syntax highlighting, and theming support.
-
VSCode DevContainer loads wrong .zshrc and writes history into /tmp
-
grep Cheatsheet
This overview summarizes the
(more…)grepcommands I frequently use to search for text in files.