Skip to content

Instantly share code, notes, and snippets.

View stephenbaidu's full-sized avatar
🏠
Working from home

Stephen Baidu stephenbaidu

🏠
Working from home
  • Microsoft
  • Redmond, WA
View GitHub Profile
# Git Helpers
function _git_url {
return $(git config --get remote.origin.url)
}
function _git_root {
$gitDir = git rev-parse --git-dir
if ($null -eq $gitDir) {
return $null
Function SimpleContextMenu {
param (
[Parameter(Mandatory, Position = 0)]
[System.Object]
$List,
[Parameter(Mandatory = $false, Position = 1)]
[string]
$Header = "Select"
)