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