summaryrefslogtreecommitdiff
path: root/scripts/deploy/jvn_zsh.zsh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-25 13:22:16 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-25 13:22:16 +0800
commitfece037f453006c83c45825e3649495180eb30c9 (patch)
tree5ce6f59c1daf525eeb73ce54393b9cd572774a53 /scripts/deploy/jvn_zsh.zsh
parent8f69598f6abfb2b3db076a15fed85c9c186ccbde (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.zsh12
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