Skip to content

Instantly share code, notes, and snippets.

@DanTup
Last active May 11, 2018 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanTup/5433001 to your computer and use it in GitHub Desktop.
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.
# 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