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.
Tag: Development Environment
-
VSCode DevContainer loads wrong .zshrc and writes history into /tmp