Files
dotfiles/scripts/cleanup-completions.sh
T
David F GliddenandClaude 92b0ead991 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>
2025-07-27 14:05:56 +02:00

30 lines
1020 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"