Skip to content

Optimize shell startup and add Codespaces support#10

Open
Copilot wants to merge 8 commits intomainfrom
copilot/improve-dotfiles-performance
Open

Optimize shell startup and add Codespaces support#10
Copilot wants to merge 8 commits intomainfrom
copilot/improve-dotfiles-performance

Conversation

Copy link

Copilot AI commented Jan 20, 2026

Shell startup was slow due to repeated brew --prefix calls (~100ms each), and the dotfiles lacked proper Codespaces configuration.

Performance

  • Cache brew --prefix in BREW_PREFIX variable across .prompt, .completion, .autojump
  • Enable DISABLE_UNTRACKED_FILES_DIRTY in oh-my-zsh for faster git status in large repos

Codespaces Support

  • Add .devcontainer/devcontainer.json with Ubuntu base, post-create install, and zsh default
  • Skip macOS-specific plugins (dash, macos) when CODESPACES env var is set
  • Skip macOS-specific runcom files in Codespaces
# Before: multiple slow calls
ZSH_SYNTAX_HIGHLIGHTING_FILE=$(brew --prefix)/share/zsh-syntax-highlighting/...
ZSH_AUTOSUGGEST_FILE=$(brew --prefix)/share/zsh-autosuggestions/...

# After: single cached call
BREW_PREFIX=${BREW_PREFIX:-$(brew --prefix)}
ZSH_SYNTAX_HIGHLIGHTING_FILE=$BREW_PREFIX/share/zsh-syntax-highlighting/...

CI/Dockerfile

  • Upgrade actions/checkout v2 → v4
  • Fix node unlinking for newer macOS runners
  • Fix Dockerfile user creation (UID/GID conflicts with ubuntu image)
  • Use JSON syntax for CMD
  • Skip Homebrew casks in macOS CI via HOMEBREW_BUNDLE_CASK_SKIP

Misc

  • Fix typo: ZSH_SYNTAX_HIGHLITING_FILEZSH_SYNTAX_HIGHLIGHTING_FILE
Original prompt

Improve my dotfiles for performance and for use in a GitHub Codespace


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 20, 2026 17:09
Co-authored-by: lumaxis <406937+lumaxis@users.noreply.github.com>
Co-authored-by: lumaxis <406937+lumaxis@users.noreply.github.com>
Co-authored-by: lumaxis <406937+lumaxis@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve dotfiles for performance in GitHub Codespace Optimize shell startup and add Codespaces support Jan 20, 2026
Copilot AI requested a review from lumaxis January 20, 2026 17:14
@lumaxis lumaxis marked this pull request as ready for review January 27, 2026 16:24
@lumaxis lumaxis closed this Jan 27, 2026
@lumaxis lumaxis reopened this Jan 27, 2026
@lumaxis
Copy link
Owner

lumaxis commented Jan 27, 2026

@copilot Skip Homebrew casks in macOS CI, similar to #9

Co-authored-by: lumaxis <406937+lumaxis@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jan 27, 2026

@copilot Skip Homebrew casks in macOS CI, similar to #9

Added in 1876189. The CI workflow now sets HOMEBREW_BUNDLE_CASK_SKIP to skip all casks defined in the Brewfile during macOS CI runs.

Copilot AI and others added 3 commits January 27, 2026 17:16
Co-authored-by: lumaxis <406937+lumaxis@users.noreply.github.com>
Remove obsolete node@16 from Homebrew dependencies
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