From 59baa230d86c1d9f2cb79fa787c75da8dbda3d1b Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 22 Jan 2024 15:58:24 +0900 Subject: [PATCH] add pdm scoop package --- bin/windows/create_completion_files.ps1 | 1 + dotfiles/pwsh/powershell_profile.ps1 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/bin/windows/create_completion_files.ps1 b/bin/windows/create_completion_files.ps1 index 61f9371..44a71ec 100644 --- a/bin/windows/create_completion_files.ps1 +++ b/bin/windows/create_completion_files.ps1 @@ -16,6 +16,7 @@ wezterm shell-completion --shell power-shell > (Join-Path $script_location "wezt chezmoi completion powershell > (Join-Path $script_location "chezmoi_completion.ps1") pip completion --powershell > (Join-Path $script_location "pip_completion.ps1") rye self completion -s powershell > (Join-Path $script_location "rye_completion.ps1") +pdm completion powershell > (Join-Path $script_location "pdm_completion.ps1") # alias Set-Location $PSScriptRoot diff --git a/dotfiles/pwsh/powershell_profile.ps1 b/dotfiles/pwsh/powershell_profile.ps1 index b9e0ae5..d7e9a0f 100644 --- a/dotfiles/pwsh/powershell_profile.ps1 +++ b/dotfiles/pwsh/powershell_profile.ps1 @@ -231,3 +231,7 @@ Import-Module WSLTabCompletion Get-ChildItem ~\.config\powershell\completions\ | % { . $_ } +# Automatically appended by pdm scoop package +Get-ChildItem "$PROFILE\..\Completions\" | ForEach-Object { + . $_.FullName +}