summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-23 14:21:35 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-23 14:21:35 +0800
commitaa436345dedec732e59dc32053e1845975120295 (patch)
treef5879cef42e7af22ca59b4b9db8f7eb302657a42 /scripts
parent1c5cef19565a57f30a21d280d63ebc0a1ecaf4fd (diff)
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/jv_cli.sh (renamed from scripts/cli.sh)12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/cli.sh b/scripts/jv_cli.sh
index 2f4571d..9eb56a9 100644
--- a/scripts/cli.sh
+++ b/scripts/jv_cli.sh
@@ -1,6 +1,4 @@
#!/bin/bash
-
-# Get the real directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
##############
@@ -15,7 +13,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
### ALIASES ###
###############
-alias jj='jv here'
+alias jvh='jv here'
alias jvu='jv update'
alias jvt='jv track'
alias jmv='jv move'
@@ -24,11 +22,11 @@ alias jmv='jv move'
### COMPLETION ###
##################
-if [ -f "$SCRIPT_DIR/completion_jv.sh" ]; then
- source "$SCRIPT_DIR/completion_jv.sh"
+if [ -f "$SCRIPT_DIR/completions/bash/completion_jv.sh" ]; then
+ source "$SCRIPT_DIR/completions/bash/completion_jv.sh"
fi
-if [ -f "$SCRIPT_DIR/completion_jvv.sh" ]; then
- source "$SCRIPT_DIR/completion_jvv.sh"
+if [ -f "$SCRIPT_DIR/completions/bash/completion_jvv.sh" ]; then
+ source "$SCRIPT_DIR/completions/bash/completion_jvv.sh"
fi
##################