devcontainers / devcontainers/spec
Some features edit `.bashrc` and `.zshrc`, such as [stuartleeks/shell-history](https://github.com/stuartleeks/dev-container-features/blob/main/src/shell-history/README.md) which needs to `chown` a folder that is mounted.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
Some features edit `.bashrc` and `.zshrc`, such as [stuartleeks/shell-history](https://github.com/stuartleeks/dev-container-features/blob/main/src/shell-history/README.md) which needs to `chown` a folder that is mounted.
The issue I'm experiencing comes when I use my custom dotfiles repo, which replaces any `.zshrc` files with a custom one, so any changes made from features are basically deleted.
Do you have any idea on how to fix this? I could source the old `.zshrc` in my custom file, but I'm not sure if that's a good idea. I was also thinking that there can be a "best practice" for devcontainer features to add stuff to `.zshrc.devcontainers` (and so on for bash and fish) so people can take this into account when making install scripts for devcontainer dotfiles.
_Originally posted by @joshuanianji in https://github.com/devcontainers/spec/discussions/371_
Contributor guide
Assessment
This issue has not been assessed yet.