Last active
May 3, 2019 19:54
-
-
Save rprouse/cb18da99bcdeafac392969836fb6ac9c to your computer and use it in GitHub Desktop.
My PowerShell.Core 6.0 profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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