dotfiles/bin/windows/create_completion_files.ps1

24 lines
1.1 KiB
PowerShell
Raw Permalink Normal View History

2023-02-19 06:29:15 +09:00
# create completion scripts file
$script_location = "$HOME\.config\powershell\completions"
if (!(Test-Path $script_location)) {
echo "No existing completions"
echo "Creating ~/.config/powershell/completions..."
mkdir $script_location
}
# write
Get-ChildItem $script_location | Remove-Item
rclone completion powershell > (Join-Path $script_location "rclone_completion.ps1")
rustup completions powershell > (Join-Path $script_location "rustup_completion.ps1")
elan completions powershell > (Join-Path $script_location "elan_completion.ps1")
2023-02-19 06:29:15 +09:00
wezterm shell-completion --shell power-shell > (Join-Path $script_location "wezterm_completion.ps1")
chezmoi completion powershell > (Join-Path $script_location "chezmoi_completion.ps1")
pip completion --powershell > (Join-Path $script_location "pip_completion.ps1")
2023-11-14 18:34:21 +09:00
rye self completion -s powershell > (Join-Path $script_location "rye_completion.ps1")
2024-01-22 15:58:24 +09:00
pdm completion powershell > (Join-Path $script_location "pdm_completion.ps1")
2023-02-19 06:29:15 +09:00
2023-03-16 22:19:04 +09:00
# alias
Set-Location $PSScriptRoot
2023-03-18 21:07:53 +09:00
Get-ChildItem "../../extra_configs/completions" -File *.ps1 | Copy-Item -Destination $script_location