From 4b5eebc2d440d23498187b1f53f915a74e875099 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 16 Jan 2021 14:05:46 +0800 Subject: [PATCH] [bugfix] symlink support --- win/profile.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +}