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
8 # Delay loading PoshGit for speed.
9 function Enable-PoshGit {
10 Import-Module posh-git
12 New-Alias pg Enable-PoshGit
14 Set-Alias code codium # Prefer Codium
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
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 }