Skip to content

Instantly share code, notes, and snippets.

@rprouse
Last active May 3, 2019 19:54
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 rprouse/cb18da99bcdeafac392969836fb6ac9c to your computer and use it in GitHub Desktop.
Save rprouse/cb18da99bcdeafac392969836fb6ac9c to your computer and use it in GitHub Desktop.
My PowerShell.Core 6.0 profile
# Set the code page to the one used by PostGres
chcp 1252
Import-Module posh-git
Import-Module oh-my-posh
Import-Module PsGoogle
Import-Module PSSudo
$ThemeSettings.MyThemesLocation = [environment]::getfolderpath("mydocuments")+ '\PowerShell\PoshThemes'
Set-Theme coder
$DefaultUser = 'rob'
Start-SshAgent -Quiet
# Set up aliases
Set-Alias ex "explorer.exe"
Set-Alias linq "C:\Program Files (x86)\LINQPad5\LINQPad.exe"
Set-Alias np "C:\Program Files (x86)\Notepad++\notepad++.exe"
Set-Alias st "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe"
Set-Alias vs "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe"
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
Clear-Host
Write-Host
Write-Host " Write " -ForegroundColor White -NoNewline
Write-Host " λ " -ForegroundColor Black -BackgroundColor White -NoNewline
Write-Host " Code " -ForegroundColor White
Write-Host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment