]> apps.delaporte.us Git - dotfiles.git/blob - files/Microsoft.PowerShell_profile.ps1
Update todo list handling
[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
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 # Dashboard
16 New-Alias dash Show-MyDashboard # from dash.psm1
17 New-Alias today Get-JournalAgenda
18
19 # You can pry my unix commands out of my cold dead fingers
20 Set-Alias which get-command
21 # Reject Windows heritage, act like Vi
22 # Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
23 Set-PSReadlineOption -BellStyle Visual
24 Set-PSReadlineOption -ViModeIndicator Prompt
25 Set-PSReadlineOption -EditMode Vi
26
27 Write-Host "+ Type 'pg' to enable PoshGit"
28 Write-Host 'See $env:realProfile for version controlled profile file.'
29
30 # Load some modules
31 $env:psmodules = "$env:dotfiles\psmodules"
32 Import-Module "$env:psmodules\dash.psm1"
33 Import-Module $env:PSModules\file_management.psm1
34 Import-Module "$env:psmodules\fix_vpn.psm1"
35
36 # Let's face it, I'm about to cd into my source directory
37 if((Get-Location).Path -eq $HOME){ cd $env:src }