Open schoelst opened 4 months ago
Here is my work around: After adding the following to my devcontainers.json
it works now:
"postCreateCommand": " sudo cp /root/.zshrc /home/vscode && sudo cp -r /root/.oh-my-zsh /home/vscode && sudo chown -R vscode:vscode /home/vscode"
Feature id and version
ghcr.io/devcontainers-contrib/features/zsh-plugins:0.0.4
Devcontainer base Image
python:3.10
What happened?
If I set the
containerUser
andremoteUser
tovscode
the zsh-plugin stops working. The default shell is set to zsh and oh-my-zsh and the .zshrc seem to be set up correctly, however, with the wrong user rights (root
, see output). A re-owning at the end of the install script should solve the matter.For the sake of completeness I create the
vscode
user like so (extract fromDockerfile
):Also the location of the home dir is derived in a fragile manner in the install script (
/home/$USERNAME
) consider reading its location from the users$HOME
.Relevant log output
EDIT: Adjusted command used to create
vscode
user.