Skip to content

Instantly share code, notes, and snippets.

@Advaitgaur004
Created May 28, 2025 01:36
Show Gist options
  • Save Advaitgaur004/bb6172e89534b8b9994582874106c5fb to your computer and use it in GitHub Desktop.
Save Advaitgaur004/bb6172e89534b8b9994582874106c5fb to your computer and use it in GitHub Desktop.
Fun pre-commit Hook
#!/bin/sh
if command -v xdg-open > /dev/null; then
xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ
elif command -v open > /dev/null; then # macOS
open https://www.youtube.com/watch?v=dQw4w9WgXcQ
elif command -v start > /dev/null; then # Windows (Git Bash or WSL)
start https://www.youtube.com/watch?v=dQw4w9WgXcQ
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment