diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:24:32 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:24:32 +0800 |
| commit | 453dc1d8e0bdcf1af2ebbafc6ffecd02e6cd2c31 (patch) | |
| tree | f6f98637dd3c03a6e436e404fd5a52e761be0caf /scripts/cli.sh | |
| parent | 53a807af083e7def4e863baecee568eef6020fff (diff) | |
Add JV_LANG environment variable support and improve CLI structure
Diffstat (limited to 'scripts/cli.sh')
| -rw-r--r-- | scripts/cli.sh | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/scripts/cli.sh b/scripts/cli.sh index ba21c54..454bd6f 100644 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -3,12 +3,26 @@ # Get the real directory where this script is located SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -# Aliases -alias jvh='jv here' +############## +### 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' -# Completion +################## +### COMPLETION ### +################## + if [ -f "$SCRIPT_DIR/completion_jv.sh" ]; then source "$SCRIPT_DIR/completion_jv.sh" fi @@ -16,7 +30,10 @@ if [ -f "$SCRIPT_DIR/completion_jvv.sh" ]; then source "$SCRIPT_DIR/completion_jvv.sh" fi -# Add bin directory to PATH +################## +### ENVIREMENT ### +################## + if [ -d "$SCRIPT_DIR/bin" ]; then export PATH="$SCRIPT_DIR/bin:$PATH" fi |
