Recommend to use [iterm2] as Mac terminal.
Libraries needed to install when setting up on a new computer:
After installing brew simply run:
brew install direnv
brew install selecta
brew install diff-so-fancy
brew install ripgrep
brew install shellcheck
brew install nvm
brew install pyenv
brew install chruby
brew install ruby-install
ruby-install # see version
pyenv install # see version
Terminal tools:
- brew: package manager for macOS (or Linux)
- direnv: unclutter your .profile
- selecta: a fuzzy text selector for files and anything else you need to select
- diff-so-fancy: good-lookin' diffs
- ripgrep: recursively searches directories for a regex pattern while respecting your gitignore
- shellcheck: static analysis for shell scripts
- semgrep: lightweight static analysis for many languages
Web development
- nvm: Node Version Manager
- pyenv: Python Version Manager
- chruby: Ruby Version Manager
- biome: Biome is a fast formatter for JavaScript, TypeScript, JSX, TSX
Cloud severless development
- gcloud: Cloud SDK
- firebase-tools: Firebase Tools
Pi setup
-
Install the Pi coding agent:
npm install -g @mariozechner/pi-coding-agent -
After running
clone_and_link.shonce, store the OpenAI API key in macOS Keychain and configure Pi auth:bash scripts/setup-pi-openai-key.sh setThe script only manages the
openaientry in~/.pi/agent/auth.jsonand preserves any other provider entries already stored there.Remove the stored Pi OpenAI key and auth entry:
bash scripts/setup-pi-openai-key.sh unset -
Global Pi settings are managed in
files/.pi/agent/settings.jsonand linked to~/.pi/agent/settings.jsonbyclone_and_link.shwithout replacing the rest of~/.pior overwriting~/.pi/agent/auth.json. -
If a previous broken
clone_and_link.shrun removed~/.pi/agent/auth.json, recreate it with:bash scripts/setup-pi-openai-key.sh setIf the script reports a legacy
~/.pisymlink, runbash clone_and_link.shfirst so it can repair~/.pibefore writing Pi auth.