Skip to content

Instantly share code, notes, and snippets.

@connerk
Last active November 6, 2018 17:10
Show Gist options
  • Save connerk/e1633c6051a6fb4a5af832a04a4c561c to your computer and use it in GitHub Desktop.
Save connerk/e1633c6051a6fb4a5af832a04a4c561c to your computer and use it in GitHub Desktop.
$sysfunctions = gci function:
function myfunctions {gci function: | where {$sysfunctions -notcontains $_} }
Set-Alias -name d -Value dotnet -Description "Easier to type DotNet"
$gitgetter = Invoke-WebRequest("https://gist.githubusercontent.com/connerk/dc13bddf110b36cad1a1d5d91c6c6f41/raw/6e2ad502eb967b06f493e8c8fdd5639675ec8051/Git-Getter.ps1")
Invoke-Expression $gitgetter.content
#launch GitKraken in current folder
function krak() {
$curpath = (get-location).ProviderPath
$lapd = $env:localappdata
$logf = "$env:temp\krakstart.log"
start-process -filepath "$lapd\gitkraken\app-4.0.5\gitkraken.exe" -ArgumentList "-p $curpath" -redirectstandardoutput $logf
}
echo "Remote PowerShell profile loaded"
@connerk
Copy link
Author

connerk commented Oct 4, 2018

To use,

  1. In an admin Powershell run Set-ExecutionPolicy Unrestricted
  2. add this to your powershell $profile.CurrentUserAllHosts
$remoteProfile = Invoke-WebRequest("https://gist.githubusercontent.com/connerk/e1633c6051a6fb4a5af832a04a4c561c/raw")
Invoke-Expression $remoteProfile.content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment