Skip to content

Remove all zsh configuration and setup - #5

Merged
mahata merged 3 commits into
mainfrom
mahata-urban-lamp
Jun 25, 2026
Merged

Remove all zsh configuration and setup#5
mahata merged 3 commits into
mainfrom
mahata-urban-lamp

Conversation

@mahata

@mahata mahata commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Why

The dotfiles repo went out of its way to configure zsh during Codespaces setup: it installed a .zshrc, symlinked it, and forced the login shell to zsh via sudo chsh. We no longer want zsh, so this rips out all of that machinery and lets Codespaces use the image default shell (bash).

What changed

  • Deleted zsh/.zshrc and the zsh/ directory (aliases dropped, not migrated).
  • install-codespaces.sh — removed the configure_zsh() and configure_login_shell() functions plus their run_step calls. Remaining steps: apt packages, uv, git config.
  • tests/configure_login_shell.bats — deleted, as it only covered the now-removed login-shell switch.
  • README.md — dropped the sentence about switching the login shell to zsh.
  • .github/workflows/ci.yml — removed the integration-job assertions for the zsh login shell and the ~/.zshrc symlink; kept the git config symlink check.

Notes

  • New Codespaces will start in the image default shell (bash) instead of zsh.
  • tests/ is now empty, so the bats CI job runs zero tests but still passes. Left the Tests section and CI job in place for future tests.
  • Verified with shellcheck (clean) and grep -rin zsh . (no matches).

Drop zsh entirely from the dotfiles repo: delete zsh/.zshrc, remove the
configure_zsh and configure_login_shell steps from install-codespaces.sh,
delete the login-shell bats test, drop the zsh wording from the README, and
remove the zsh assertions from the CI integration job.

Codespaces now keep the image default login shell (bash) instead of switching
to zsh.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 04:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes all zsh-specific dotfiles and Codespaces setup so new Codespaces sessions use the container image’s default shell (bash) rather than forcing zsh.

Changes:

  • Deleted zsh configuration (zsh/.zshrc) and removed the corresponding setup steps from install-codespaces.sh.
  • Removed the login-shell-changing test (tests/configure_login_shell.bats) and dropped the README note about sudo chsh.
  • Simplified CI integration assertions by removing zsh/login-shell checks.
Show a summary per file
File Description
zsh/.zshrc Deleted the zsh configuration file.
tests/configure_login_shell.bats Deleted tests that only validated the removed login-shell switching behavior.
README.md Removed documentation claiming Codespaces setup switches the login shell to zsh.
install-codespaces.sh Removed zsh setup and login-shell mutation steps; keeps apt/uv/git config steps.
.github/workflows/ci.yml Removed zsh/login-shell assertions from the integration job.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 5/5 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
mahata and others added 2 commits June 25, 2026 13:48
…ADME

- bats job: skip gracefully when no .bats tests exist (tests/ is now empty,
  so a fresh checkout has no tests/ dir and 'bats tests/' failed).
- integration job: capture the login shell before and after install.sh and
  assert it is unchanged, validating the PR's intent without hardcoding a shell.
- README: update the integration job description to match the new assertions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# Conflicts:
#	README.md
#	install-codespaces.sh
@mahata
mahata merged commit a76a328 into main Jun 25, 2026
4 checks passed
@mahata
mahata deleted the mahata-urban-lamp branch June 25, 2026 06:26
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 this pull request may close these issues.

2 participants