Last active
August 12, 2021 17:18
-
-
Save paw-lu/5b5203d4563448afd9f1ff45c2b753e7 to your computer and use it in GitHub Desktop.
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
# Requires GitHub Repositories https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub | |
ghcode () { | |
if [[ -z "$1" ]] | |
then | |
echo "Usage: ghcode paw-lu/nbpreview" | |
else | |
local repo="$1" | |
open -a 'Visual Studio Code' "vscode://GitHub.remotehub/open?url=https://github.com/${repo}" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment