Remove Peacock statusline and linting configuration - run before uninstalling plugin
Removes Peacock statusline and linting configuration before uninstalling. Cleans up config files, lint state, and settings.json entries.
/plugin marketplace add b-open-io/claude-peacock/plugin install peacock@b-open-ioRemove the Peacock statusline configuration.
Run this before uninstalling the plugin:
/peacock:unsetup
Verify jq is installed (required for JSON manipulation):
command -v jq
If jq is not found, output:
⚠️ jq is not installed - can't automatically clean settings.json
Manual cleanup required:
1. Delete ~/.claude/statusline.sh
2. Edit ~/.claude/settings.json and remove the "statusLine" entry
Or install jq and run /peacock:unsetup again:
macOS: brew install jq
Ubuntu: sudo apt install jq
And stop execution.
Remove the Peacock config file if it exists (stores editor preferences and linting configuration):
if [[ -f ~/.claude/.peacock-config ]]; then
rm ~/.claude/.peacock-config
echo " • Removed ~/.claude/.peacock-config"
fi
Remove lint state directory if it exists:
if [[ -d ~/.claude/lint-state ]]; then
rm -rf ~/.claude/lint-state
echo " • Removed ~/.claude/lint-state/"
fi
Check if ~/.claude/statusline.sh exists:
ls ~/.claude/statusline.sh
If it exists, verify it's the Peacock statusline by checking the first few lines for "Peacock" or "peacock":
head -5 ~/.claude/statusline.sh | grep -i peacock
If it matches (contains "peacock"), remove it:
rm ~/.claude/statusline.sh
If it doesn't match, output a warning:
⚠️ Warning: ~/.claude/statusline.sh doesn't appear to be the Peacock statusline
Not removing it automatically. If you want to remove it, delete it manually:
rm ~/.claude/statusline.sh
Check if settings.json exists:
ls ~/.claude/settings.json
If it exists, remove the statusLine entry:
jq 'del(.statusLine)' ~/.claude/settings.json > ~/.claude/settings.json.tmp
mv ~/.claude/settings.json.tmp ~/.claude/settings.json
Validate the result is valid JSON:
jq . ~/.claude/settings.json
If validation fails, output error and restore from backup.
Output:
✅ Peacock statusline configuration removed successfully!
What was done:
• Removed ~/.claude/.peacock-config (if it existed)
• Removed ~/.claude/lint-state/ (if it existed)
• Removed ~/.claude/statusline.sh
• Removed statusLine entry from ~/.claude/settings.json
Note: Lint hooks and iTerm2 color hooks will be automatically removed when you uninstall the plugin.
Next steps:
1. Restart Claude Code (statusline will no longer appear)
2. Uninstall the plugin: /plugin
(This will also remove lint hooks automatically)
To reinstall later:
/plugin install peacock@b-open-io
/peacock:setup
Features you'll get back:
• Automatic project root detection (works with ~/code, ~/Source, ~/projects)
• Peacock theme color integration
• Git branch, lint status, and token usage display
• Automatic linting (TypeScript/JavaScript, Go)
• Clickable file paths