Add completion cleanup script and deploy refined shell config

🧹 Completion system maintenance:
- Remove old Mullvad VPN completion files
- Clear completion cache for fresh start
- Check for NordVPN completion availability

🚀 Deployment successful:
- Backed up original .zshrc
- Symlinked refined modular configuration
- Git hooks configured globally
- All scripts and configs linked

System now running with enhanced durability principles! 🎯

🤖 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
David F Glidden
2025-07-27 14:05:56 +02:00
co-authored by Claude
parent 546e43fc64
commit 92b0ead991
2 changed files with 32 additions and 0 deletions
+2
View File
@@ -12,3 +12,5 @@
required = true required = true
[url "git@github.com:"] [url "git@github.com:"]
insteadOf = https://github.com/ insteadOf = https://github.com/
[core]
hooksPath = /Users/davidglidden/dotfiles/git/hooks
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# Clean up old completion files
echo "🧹 Cleaning up old completion files..."
# Remove old Mullvad completion (requires sudo)
if [[ -f "/usr/local/share/zsh/site-functions/_mullvad" ]]; then
echo "Removing old Mullvad completion file..."
sudo rm -f /usr/local/share/zsh/site-functions/_mullvad
echo "✅ Mullvad completion removed"
else
echo "✅ Mullvad completion already cleaned"
fi
# Check for NordVPN completion
if [[ -f "/opt/homebrew/share/zsh/site-functions/_nordvpn" ]]; then
echo "✅ NordVPN completion available"
elif command -v nordvpn >/dev/null 2>&1; then
echo "⚠️ NordVPN installed but completion missing"
echo "💡 Try: nordvpn completion zsh > /opt/homebrew/share/zsh/site-functions/_nordvpn"
else
echo "ℹ️ NordVPN not detected via CLI"
fi
# Clear any remaining completion cache
rm -f ~/.zcompdump*
echo "✅ Completion cache cleared"
echo "🎉 Completion cleanup complete!"
echo "💡 Restart your shell to regenerate completions"