diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-26 15:55:10 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-26 15:55:10 +0800 |
| commit | fb2ffa849a2cf9251cc274ebea5daa9898579787 (patch) | |
| tree | 53b87ee60ba7c6ee7b001221855a6f3bff7e8526 /scripts/deploy/jvn_powershell.ps1 | |
| parent | 4cb7c2e91d7dbde32de31e6ab48683d60212ec1d (diff) | |
Add shell completion system with descriptions and i18n support
Diffstat (limited to 'scripts/deploy/jvn_powershell.ps1')
| -rw-r--r-- | scripts/deploy/jvn_powershell.ps1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/deploy/jvn_powershell.ps1 b/scripts/deploy/jvn_powershell.ps1 new file mode 100644 index 0000000..495ed43 --- /dev/null +++ b/scripts/deploy/jvn_powershell.ps1 @@ -0,0 +1,13 @@ +$SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition + +# Completion +$completionScript = Join-Path $SCRIPT_DIR "comp\comp.ps1" +if (Test-Path $completionScript) { + . $completionScript +} + +# Envirement +$binPath = Join-Path $SCRIPT_DIR "bin" +if (Test-Path $binPath) { + $env:PATH = "$binPath;$env:PATH" +} |
