From a9744926935d01323c63b1edf98390c7a960c90d Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 7 Apr 2023 20:08:19 +0900 Subject: [PATCH] add: pwsh: import-module s --- dotfiles/pwsh/powershell_profile.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/pwsh/powershell_profile.ps1 b/dotfiles/pwsh/powershell_profile.ps1 index 77ee8fc..d9ba332 100644 --- a/dotfiles/pwsh/powershell_profile.ps1 +++ b/dotfiles/pwsh/powershell_profile.ps1 @@ -3,6 +3,7 @@ # ============================================================== Import-Module PSReadLine # >= 2.2.2 Import-Module CompletionPredictor +Import-Module DirectoryPredictor Set-PSReadLineOption -EditMode Windows Set-PSReadLineOption -PredictionSource HistoryAndPlugin # require PowerShell ≧ 7.2 and PSReadLine ≧ 2.2.2 Set-PSReadlineOption -HistoryNoDuplicates @@ -153,6 +154,7 @@ function Invoke-SshAdd { } # execute "ssh-add" to add keys +Import-Module PSDates # less options $env:LESS = "-i -M -R -S -W -z-4 -x4" @@ -210,5 +212,8 @@ Import-Module npm-completion # wezterm #wezterm shell-completion --shell power-shell | Out-String | Invoke-Expression +# wsl.exe +Import-Module WSLTabCompletion + Get-ChildItem ~\.config\powershell\completions\ | % { & $_ }