Created
May 28, 2025 01:36
-
-
Save Advaitgaur004/bb6172e89534b8b9994582874106c5fb to your computer and use it in GitHub Desktop.
Fun pre-commit Hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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