mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
new: pwsh: use local completion file
This commit is contained in:
parent
b3c40a3bb1
commit
6cdd51f11e
2 changed files with 27 additions and 10 deletions
16
bin/windows/create_completion_files.ps1
Normal file
16
bin/windows/create_completion_files.ps1
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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")
|
||||
wezterm shell-completion --shell power-shell > (Join-Path $script_location "wezterm_completion.ps1")
|
||||
chezmoi completion powershell > (Join-Path $script_location "chezmoi_completion.ps1")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue