diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-14 22:12:30 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-14 22:40:12 +0800 |
| commit | 72f80ea51f25256d0c463c2f3dc3d8670cfc4634 (patch) | |
| tree | b200a3ab1a4c718034458863570a064b52bafdcd /scripts/deploy/jvn.sh | |
| parent | 54b5567d6f1b1adaa6ada6a26faba0c5c492b7f3 (diff) | |
Add shell completions for new jvn CLI
Diffstat (limited to 'scripts/deploy/jvn.sh')
| -rw-r--r-- | scripts/deploy/jvn.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/deploy/jvn.sh b/scripts/deploy/jvn.sh new file mode 100644 index 0000000..25c6ad5 --- /dev/null +++ b/scripts/deploy/jvn.sh @@ -0,0 +1,25 @@ +#!bin/bash +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + +# Completion script +if [ -n "$BASH_VERSION" ]; then + # Bash + if [ -f "$SCRIPT_DIR/comp/jvn_bash.sh" ]; then + source "$SCRIPT_DIR/comp/jvn_bash.sh" + fi +elif [ -n "$ZSH_VERSION" ]; then + # Zsh + if [ -f "$SCRIPT_DIR/comp/jvn_zsh.sh" ]; then + source "$SCRIPT_DIR/comp/jvn_zsh.sh" + fi +elif [ -n "$FISH_VERSION" ]; then + # Fish + if [ -f "$SCRIPT_DIR/comp/jvn_fish.fish" ]; then + source "$SCRIPT_DIR/comp/jvn_fish.fish" + fi +fi + +# Envirement +if [ -d "$SCRIPT_DIR/bin" ]; then + export PATH="$SCRIPT_DIR/bin:$PATH" +fi |
