Skip to content

Instantly share code, notes, and snippets.

@SyntaxC4
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SyntaxC4/97a400f71ef098f44e6d to your computer and use it in GitHub Desktop.
Save SyntaxC4/97a400f71ef098f44e6d to your computer and use it in GitHub Desktop.
My PowerShell Profile
$HOST.UI.RawUI.ForegroundColor="Green"
$HOST.UI.RawUI.BackgroundColor="Black"
Function gig {
param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = $list -join ","
Invoke-WebRequest -Uri "https://www.gitignore.io/api/$params" | select -ExpandProperty content | Out-File -FilePath $(Join-Path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}
Function gls {
Get-ChildItem
Write-Host ""
Invoke-Expression -Command 'git status'
}
function which {
get-command $args[0]| format-list
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment