new: pwsh rustup completion

This commit is contained in:
qwjyh 2022-12-20 17:09:48 +09:00
parent 907253b097
commit 00ff665291
3 changed files with 487 additions and 3 deletions

View file

@ -168,9 +168,9 @@ Import-Module scoop-completion
#Import-Module "$($(Get-Item $(Get-Command scoop.ps1).Path).Directory.Parent.FullName)\modules\scoop-completion"
# chezmoi completion
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
if (Test-Path $script) {
. $script
$chezmoi_script = "$HOME\.config\powershell\chezmoi_completion.ps1"
if (Test-Path $chezmoi_script) {
. $chezmoi_script
}
# git completion
@ -203,3 +203,10 @@ rclone completion powershell | Out-String | Invoke-Expression
# node
Import-Module npm-completion
# rustup completion
$rustup_script = "$HOME\.config\powershell\rustup_completion.ps1"
if (Test-Path $rustup_script) {
. $rustup_script
}