Last active
November 13, 2024 15:19
-
-
Save kristopherjohnson/bf07f434a140efaf2d94823348be580f to your computer and use it in GitHub Desktop.
bash/zsh alias for opening the GitHub page for the current repo on macOS
This file contains 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
# Open the current directory's GitHub repo in web browser | |
alias open-repo="open \"\$(git config --get remote.origin.url | sed -E 's/git@github.com:/https:\/\/github.com\//; s/\.git\$//')\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment