diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-23 14:21:35 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-23 14:21:35 +0800 |
| commit | aa436345dedec732e59dc32053e1845975120295 (patch) | |
| tree | f5879cef42e7af22ca59b4b9db8f7eb302657a42 /scripts/jv_cli.sh | |
| parent | 1c5cef19565a57f30a21d280d63ebc0a1ecaf4fd (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/jv_cli.sh')
| -rw-r--r-- | scripts/jv_cli.sh | 38 |
1 files changed, 38 insertions, 0 deletions
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 |
