config_cs
updates your Codespaces settings for both VS Code and the GitHub CLI. It takes one argument (local
, dev
, ppe
, or prod
), updates your ~/codespaces-settings.json
file, and updates some environment variables. You can install config_cs
by adding some code to your ~/.zshrc
file.
config_cs
officially supports zsh
, the default shell on macOS. It appears to work with bash
on macOS, but your mileage may vary.
To install config_cs
for zsh
on macOS, follow these steps:
- Append the contents of
codespaces.sh
to your~/.zshrc
- Update
ms_alias
to match your Microsoft alias source ~/.zshrc
or open a new terminal window
config_cs
supports tab autocomplete! You need to install Oh My Zsh or uncomment two lines in your ~/.zshrc
to enable autocomplete:
# Uncomment the next two lines to load bash completion functions
autoload -Uz +X compinit && compinit
autoload -Uz +X bashcompinit && bashcompinit
# Configure settings for your devstamp
config_cs local
# Configure settings for Dev
config_cs dev
# Configure settings for PPE
config_cs ppe
# Reset settings to defaults for Prod
config_cs