diff --git a/win/profile.ps1 b/win/profile.ps1 index 86726f6..0eba7a2 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -8,7 +8,9 @@ Set-PSReadLineOption -PredictionSource History Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' -$Env:Path += ";$PSScriptRoot\bin" +$Dir = (Get-Item (Get-Item $PSCommandPath).Target).Directory.FullName +$Env:Path += ";$Dir\bin" +$Env:PSModulePath += ";$Dir\Modules" $Env:KUBE_EDITOR = 'nvim' $Env:EDITOR = 'nvim' Set-Alias -Name k kubectl @@ -99,4 +101,4 @@ function pass-edit { Move-Item -Path "${tmpfile.FullName}.gpg" -Destination "$Path" -Force Remove-Item $tmpfile.FullName -Force } -} \ No newline at end of file +}