diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-25 13:22:16 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-25 13:22:16 +0800 |
| commit | fece037f453006c83c45825e3649495180eb30c9 (patch) | |
| tree | 5ce6f59c1daf525eeb73ce54393b9cd572774a53 /scripts/deploy/jvn_zsh.zsh | |
| parent | 8f69598f6abfb2b3db076a15fed85c9c186ccbde (diff) | |
Split Unix completion script entry into separate bash/zsh/fish versions
Diffstat (limited to 'scripts/deploy/jvn_zsh.zsh')
| -rw-r--r-- | scripts/deploy/jvn_zsh.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/deploy/jvn_zsh.zsh b/scripts/deploy/jvn_zsh.zsh new file mode 100644 index 0000000..25f8304 --- /dev/null +++ b/scripts/deploy/jvn_zsh.zsh @@ -0,0 +1,12 @@ +#!/bin/zsh +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + +# Completion script +if [ -f "$SCRIPT_DIR/comp/jvn_zsh.zsh" ]; then + source "$SCRIPT_DIR/comp/jvn_zsh.zsh" +fi + +# Environment +if [ -d "$SCRIPT_DIR/bin" ]; then + export PATH="$SCRIPT_DIR/bin:$PATH" +fi |
