Last active
May 11, 2018 18:43
-
-
Save DanTup/5433001 to your computer and use it in GitHub Desktop.
PowerShell function to launch Kiln in a browser for the repo you're currently in.
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
# Launch Kiln for current repo | |
Function Kiln | |
{ | |
if (Test-Path ".\.hg\hgrc") | |
{ | |
$repoUrl = (Select-String "default = (.*)" -Path ".\.hg\hgrc" -AllMatches).Matches.Groups[1].Value | |
Start $repoUrl | |
} | |
else | |
{ Write-Warning "Not in a repo!" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment