Last active
August 17, 2021 12:42
-
-
Save dfinke/7d878ca95397f037a1cfeceed76a3b6c to your computer and use it in GitHub Desktop.
Opens the GitHub web editor on a repo
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
function Open-GHWebEditor { | |
<# | |
.SYNOPSIS | |
Opens the GitHub web editor on a repo. | |
.EXAMPLE | |
Open-GHWebEditor powerShell/powerShell | |
#> | |
param( | |
[Parameter(Mandatory)] | |
$slug | |
) | |
$url = "https://github.dev/$($slug)" | |
Start-Process $url | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment