🧹 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>
30 lines
1020 B
Bash
Executable File
30 lines
1020 B
Bash
Executable File
#!/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" |