Skip to content

Instantly share code, notes, and snippets.

@paw-lu
Last active August 12, 2021 17:18
Show Gist options
  • Save paw-lu/5b5203d4563448afd9f1ff45c2b753e7 to your computer and use it in GitHub Desktop.
Save paw-lu/5b5203d4563448afd9f1ff45c2b753e7 to your computer and use it in GitHub Desktop.
# 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