From aa436345dedec732e59dc32053e1845975120295 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 23 Nov 2025 14:21:35 +0800 Subject: Rename CLI script and update completion paths - Rename cli.sh to jv_cli.sh for better naming consistency - Update completion script paths to point to new completions/bash directory - Change 'jj' alias to 'jvh' for clearer naming --- scripts/cli.sh | 40 ---------------------------------------- scripts/jv_cli.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 40 deletions(-) delete mode 100644 scripts/cli.sh create mode 100644 scripts/jv_cli.sh (limited to 'scripts') diff --git a/scripts/cli.sh b/scripts/cli.sh deleted file mode 100644 index 2f4571d..0000000 --- a/scripts/cli.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -# Get the real directory where this script is located -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" - -############## -### CONFIG ### -############## - -# Use JV_LANG to set CLI language -# Supported: en, zh-CN -# export JV_LANG=en - -############### -### ALIASES ### -############### - -alias jj='jv here' -alias jvu='jv update' -alias jvt='jv track' -alias jmv='jv move' - -################## -### COMPLETION ### -################## - -if [ -f "$SCRIPT_DIR/completion_jv.sh" ]; then - source "$SCRIPT_DIR/completion_jv.sh" -fi -if [ -f "$SCRIPT_DIR/completion_jvv.sh" ]; then - source "$SCRIPT_DIR/completion_jvv.sh" -fi - -################## -### ENVIREMENT ### -################## - -if [ -d "$SCRIPT_DIR/bin" ]; then - export PATH="$SCRIPT_DIR/bin:$PATH" -fi diff --git a/scripts/jv_cli.sh b/scripts/jv_cli.sh new file mode 100644 index 0000000..9eb56a9 --- /dev/null +++ b/scripts/jv_cli.sh @@ -0,0 +1,38 @@ +#!/bin/bash +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" + +############## +### CONFIG ### +############## + +# Use JV_LANG to set CLI language +# Supported: en, zh-CN +# export JV_LANG=en + +############### +### ALIASES ### +############### + +alias jvh='jv here' +alias jvu='jv update' +alias jvt='jv track' +alias jmv='jv move' + +################## +### COMPLETION ### +################## + +if [ -f "$SCRIPT_DIR/completions/bash/completion_jv.sh" ]; then + source "$SCRIPT_DIR/completions/bash/completion_jv.sh" +fi +if [ -f "$SCRIPT_DIR/completions/bash/completion_jvv.sh" ]; then + source "$SCRIPT_DIR/completions/bash/completion_jvv.sh" +fi + +################## +### ENVIREMENT ### +################## + +if [ -d "$SCRIPT_DIR/bin" ]; then + export PATH="$SCRIPT_DIR/bin:$PATH" +fi -- cgit