From 72f80ea51f25256d0c463c2f3dc3d8670cfc4634 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 14 Mar 2026 22:12:30 +0800 Subject: Add shell completions for new jvn CLI --- scripts/deploy/jvn.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 scripts/deploy/jvn.sh (limited to 'scripts/deploy/jvn.sh') 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 -- cgit