add: pwsh: import-module s

This commit is contained in:
qwjyh 2023-04-07 20:08:19 +09:00
parent a477226eca
commit a974492693

View file

@ -3,6 +3,7 @@
# ============================================================== # ==============================================================
Import-Module PSReadLine # >= 2.2.2 Import-Module PSReadLine # >= 2.2.2
Import-Module CompletionPredictor Import-Module CompletionPredictor
Import-Module DirectoryPredictor
Set-PSReadLineOption -EditMode Windows Set-PSReadLineOption -EditMode Windows
Set-PSReadLineOption -PredictionSource HistoryAndPlugin # require PowerShell ≧ 7.2 and PSReadLine ≧ 2.2.2 Set-PSReadLineOption -PredictionSource HistoryAndPlugin # require PowerShell ≧ 7.2 and PSReadLine ≧ 2.2.2
Set-PSReadlineOption -HistoryNoDuplicates Set-PSReadlineOption -HistoryNoDuplicates
@ -153,6 +154,7 @@ function Invoke-SshAdd {
} }
# execute "ssh-add" to add keys # execute "ssh-add" to add keys
Import-Module PSDates
# less options # less options
$env:LESS = "-i -M -R -S -W -z-4 -x4" $env:LESS = "-i -M -R -S -W -z-4 -x4"
@ -210,5 +212,8 @@ Import-Module npm-completion
# wezterm # wezterm
#wezterm shell-completion --shell power-shell | Out-String | Invoke-Expression #wezterm shell-completion --shell power-shell | Out-String | Invoke-Expression
# wsl.exe
Import-Module WSLTabCompletion
Get-ChildItem ~\.config\powershell\completions\ | % { & $_ } Get-ChildItem ~\.config\powershell\completions\ | % { & $_ }