Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set zsh as default terminal input #23

Open
patrickelectric opened this issue Jul 13, 2023 · 2 comments
Open

Set zsh as default terminal input #23

patrickelectric opened this issue Jul 13, 2023 · 2 comments

Comments

@patrickelectric
Copy link

How can that be accomplished ?
I would like to have it working for tmux and others services inside the docker as well.

@p-j
Copy link

p-j commented Jul 19, 2023

In your Dockerfile:

RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)"
RUN chsh -s /bin/zsh username
CMD [ "/bin/zsh" ]

this should work provided your user has the correct permissions (otherwise you may need to change the current user to root or to sudo the command)

@smolinari
Copy link

smolinari commented Jul 28, 2023

Hi,

I'm also using your script (thank you very much btw for it) to load in oh-my-zsh into a container in k8s. The thing is, I need to have restricted permissions for the user's activity and installing oh-my-zsh with root puts the /.oh-my-zsh folder out of reach to source it for the container's user and I don't want to expand the user's permissions to be able to wget or curl anything.

Is there at all a way around this?

Maybe copy over the files to the new user?

Scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants