Skip to content

Add optional Oh My Zsh installation and configuration to provisioning - #7

Merged
volpatto merged 1 commit into
mainfrom
add-oh-my-zsh
Aug 18, 2026
Merged

Add optional Oh My Zsh installation and configuration to provisioning#7
volpatto merged 1 commit into
mainfrom
add-oh-my-zsh

Conversation

@volpatto

Copy link
Copy Markdown
Member

As in the title.

Copilot AI lite review requested due to automatic review settings August 18, 2026 03:04
@volpatto
volpatto merged commit 5169cc6 into main Aug 18, 2026
2 checks passed
@volpatto
volpatto deleted the add-oh-my-zsh branch August 18, 2026 03:05

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

Adds an explicit opt-in path to install and configure Oh My Zsh (with Powerlevel10k, plugins, fonts, and a generated .zshrc) as part of provisioning, while also improving how “user-scoped” installs are targeted (especially for non-standard/centrally managed home directories on Ubuntu).

Changes:

  • Add --install-oh-my-zsh flag (default false) to both Ubuntu and macOS provisioning, including post-install p10k configure in interactive runs.
  • Improve Ubuntu “target user/home” handling via --target-user / --target-home overrides and run more user-scoped actions with sudo -H ... env HOME=....
  • Document the new flags and optional terminal customization behavior in README.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
scripts/provision-ubuntu.sh Adds opt-in Oh My Zsh setup, target user/home overrides, and user-context execution for home-scoped installs/verification.
scripts/provision-macos.sh Adds opt-in Oh My Zsh setup and post-install configuration wizard behavior.
README.md Documents new flags, examples, and the optional Oh My Zsh configuration behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +439 to +442
install_git_repo_user "$u" "$h" https://github.com/ohmyzsh/ohmyzsh.git "$h/.oh-my-zsh"
install_git_repo_user "$u" "$h" https://github.com/romkatv/powerlevel10k.git "$custom_dir/themes/powerlevel10k"
install_git_repo_user "$u" "$h" https://github.com/zsh-users/zsh-autosuggestions.git "$custom_dir/plugins/zsh-autosuggestions"
install_git_repo_user "$u" "$h" https://github.com/zsh-users/zsh-syntax-highlighting.git "$custom_dir/plugins/zsh-syntax-highlighting"
Comment on lines +147 to +148
sudo -H -u "$TARGET_USER" env HOME="$TARGET_HOME" test -d "$TARGET_HOME" \
|| { err "Target home does not exist, is not mounted, or is inaccessible to $TARGET_USER: $TARGET_HOME"; exit 1; }
Comment on lines +299 to +303
log "Installing Oh My Zsh and the requested theme/plugins..."
install_git_repo_user https://github.com/ohmyzsh/ohmyzsh.git "$HOME/.oh-my-zsh"
install_git_repo_user https://github.com/romkatv/powerlevel10k.git "$custom_dir/themes/powerlevel10k"
install_git_repo_user https://github.com/zsh-users/zsh-autosuggestions.git "$custom_dir/plugins/zsh-autosuggestions"
install_git_repo_user https://github.com/zsh-users/zsh-syntax-highlighting.git "$custom_dir/plugins/zsh-syntax-highlighting"
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