]> apps.delaporte.us Git - dotfiles.git/blob - files/Microsoft.PowerShell_profile.ps1
Fix?
[dotfiles.git] / files / Microsoft.PowerShell_profile.ps1
1 $env:src = "$HOME\src"
2 $env:dotfiles = "$HOME\dotfiles"
3 Import-Module $env:dotfiles\psmodules\add_to_profile.psm1
4 Add-ToProfile $env:dotfiles\files\paths.ps1
5 Add-ToProfile $env:dotfiles\files\env.ps1
6 Add-ToProfile $env:dotfiles\files\load_modules.ps1
7
8 # Delay loading PoshGit for speed.
9 function Enable-PoshGit {
10 Import-Module posh-git
11 }
12 New-Alias pg Enable-PoshGit
13
14 Set-Alias code codium # Prefer Codium
15
16 # You can pry my unix commands out of my cold dead fingers
17 Set-Alias which get-command
18 # Reject Windows heritage, act like Vi
19 # Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
20 Set-PSReadlineOption -BellStyle Visual
21 Set-PSReadlineOption -ViModeIndicator Prompt
22 Set-PSReadlineOption -EditMode Vi
23
24 Write-Host "+ Type 'pg' to enable PoshGit"
25 Write-Host 'See $env:realProfile for version controlled profile file.'
26 # Let's face it, I'm about to cd into my source directory
27 if((Get-Location).Path -eq $HOME){ cd $env:src }