diff --git a/.gitconfig b/.gitconfig index 9b67785..00bc288 100644 --- a/.gitconfig +++ b/.gitconfig @@ -12,3 +12,5 @@ required = true [url "git@github.com:"] insteadOf = https://github.com/ +[core] + hooksPath = /Users/davidglidden/dotfiles/git/hooks diff --git a/scripts/cleanup-completions.sh b/scripts/cleanup-completions.sh new file mode 100755 index 0000000..2e63d87 --- /dev/null +++ b/scripts/cleanup-completions.sh @@ -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" \ No newline at end of file