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

Common Utils - If installing ZSH, set as default shell for user #324

Closed
jacobwoffenden opened this issue Dec 7, 2022 · 3 comments · Fixed by #325
Closed

Common Utils - If installing ZSH, set as default shell for user #324

jacobwoffenden opened this issue Dec 7, 2022 · 3 comments · Fixed by #325

Comments

@jacobwoffenden
Copy link
Contributor

Hi,

When using the common-utils feature, and setting installZsh to true (default behaviour), I think it would be useful to change the default shell for the determined ${USERNAME}. I've found that I either need to do it in postCreateCommand (e.g. sudo chsh --shell /bin/zsh vscode) or configure it via Terminal Profiles, although I haven't managed to get this working yet using customizations

@samruddhikhandale
Copy link
Member

Hi @jacobwoffenden 👋 ,

As a heads up, we're discussing splitting up the common-utils Feature: #67 where we have discussed of creating a new feature for Zsh.

When using the common-utils feature, and setting installZsh to true (default behaviour), I think it would be useful to change the default shell for the determined ${USERNAME}

This is a good point and makes sense to me. However, making this change now could be a little disruptive for the users who expects bash as their default shell when they use this common-utils Feature. Also, most of the dev container images rely on this common-utils Feature. The community using these images have also been expecting bash as the default shell. We could add a command to change the shell to bash for the image but again it would be little contradictory.

I wonder if we could hold on making this change in #325 for now as it will be soon addressed by #67 (comment)? I can add this suggestion to ensure that zsh is configured for the default user when the zsh Feature is used. We could also add a new isConfigured: true property for the Feature so that anyone could disable and simply install zsh. (That'll be useful for the dev container images)

@jacobwoffenden what do you think?

@jacobwoffenden
Copy link
Contributor Author

jacobwoffenden commented Dec 9, 2022

Hey @samruddhikhandale!

I'd come across #67 and I think it's a good idea, I just didn't know how long it would take to happen.

In light of your comments, I've updated my PR to move the chsh behind an option that defaults to false, would this be enough to get the change in for now and then potentially reused when the zsh feature is created?

@samruddhikhandale
Copy link
Member

In light of your comments, I've updated my PR to move the chsh behind an option that defaults to false, would this be enough to get the change in for now and then potentially reused when the zsh feature is created?

✨ Yes! Yes! Looking 👀

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

Successfully merging a pull request may close this issue.

2 participants