Created
July 18, 2021 03:07
-
-
Save miyataka/d7d78ede8e0be1f732b5fd71a94c8492 to your computer and use it in GitHub Desktop.
open github (current directory) repo page
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
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
alias og="open-github" | |
function open-github() { | |
url_string=$(git config --get remote.origin.url | cut -d':' -f2) | |
chrome https://github.com/${url_string: 0:-4} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment