Manage ccdev Inline Plugins
Add or remove --plugin-dir entries from the ccdev() function in ~/code/dotfiles/.zshrc.
Arguments
$0— Action:addorremove$1— Plugin directory path (e.g.~/code/side-quest-plugins/plugins/my-plugin)
Steps
- Read
~/code/dotfiles/.zshrcand find theccdev()function (look forfunction ccdev()) - Validate the plugin path exists on disk (use Bash
lsto check) - Check for duplicates — if adding, confirm the
--plugin-dirline doesn't already exist; if removing, confirm it does exist - Edit the file:
- add: Insert a new
--plugin-dirline in alphabetical order within the existing list. The lines are sorted alphabetically by full path. Maintain the existing indentation (4 spaces +--plugin-dir). - remove: Delete the
--plugin-dirline for that path.
- add: Insert a new
- Show the user the updated
ccdev()function so they can verify - Remind the user:
Done! To activate the change:
1. Run: sz (reloads .zshrc)
2. Restart Claude Code with ccdev
Important Rules
- NEVER modify anything outside the
ccdev()function - NEVER reorder existing lines — only insert/remove the single target line
- Keep
"$@"as the last argument on its own line - Use
~/code/prefix (not full/Users/nathanvale/code/) to match existing style