Skip to content

Default shell should be set using chsh #70

@danlamanna

Description

@danlamanna

As of #17 the default shell is set using a VSCode setting instead of changing the shell of the user via chsh (e.g. https://github.com/nils-geistmann/devcontainers-features/blob/712d8a4fc8ad1557eee806864ce726a55da3ed65/src/zsh/install.sh#L17). This makes it difficult for downstream users to override in an automated fashion with something like https://code.visualstudio.com/docs/devcontainers/containers#_personalizing-with-dotfile-repositories.

The context for this is larger projects with multiple developers with different shell preferences. I think this should be resolved via:

  1. Adding an option for if fish should be set to the default shell (defaulting to true to preserve backward compatibility)
  2. Remove the setting customization
  3. Run chsh inside install.sh if the option is set to true

Does this sound reasonable? If so I can file a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions