mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-08-02 12:23:54 -04:00
28582d56c06dcd5d65a104769babb4290f5d26ca
opencode's config schema types mcp.<name>.enabled as a static boolean and only interpolates {env:VAR} for string values, so conditional enablement is not expressible in opencode.jsonc alone.
Add a config-hook plugin that flips ibmi-server.enabled to true only when DB2i_HOST, DB2i_USER, and DB2i_PASS are all set. The config retains enabled: false as a fallback if the plugin fails to load.
ZSH Plugin and Theme
The key to this setup is GNU stow a symlink manager. stow allows you to easily link the files in the repo directly to where these files would be in your home directory originally.
I prefer to manually install the my zsh theme and plugins. I like to the ~/.zsh directory to store the repos of any dependencies I bring into my config.
Prerequisites
GNU stow
Install stow with your system's package manager.
Nerd Fonts
Make sure you get a nerd font installed and configured for your terminal emulators, text editors, and IDEs of choice.
Powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k
zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Configure a New Machine
- Clone this repository to your home directory
git clone https://github.com/cole-maxwell1/dotfiles.git - Run GNU stow
cd dotfiles && stow . - Make scripts executable for current user
chmod -R u+x ~/dotfiles/.scripts/
Description
Languages
Lua
86.8%
TypeScript
11.5%
Tree-sitter Query
1.4%
Shell
0.3%