summaryrefslogtreecommitdiff
path: root/scripts/jv_cli.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-07 15:46:40 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-07 15:46:40 +0800
commite580d5db3cc4146a4e3006492f7ced26b8e8072c (patch)
treeaa56e423b25982f9f7422114f81b362ef5f034d9 /scripts/jv_cli.sh
parent197363c9ed2b285db220988590dfc13edcbbad41 (diff)
Move deployment scripts to deploy subdirectory
Diffstat (limited to 'scripts/jv_cli.sh')
-rw-r--r--scripts/jv_cli.sh74
1 files changed, 0 insertions, 74 deletions
diff --git a/scripts/jv_cli.sh b/scripts/jv_cli.sh
deleted file mode 100644
index d732d95..0000000
--- a/scripts/jv_cli.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-
-##############
-### CONFIG ###
-##############
-
-# Use JV_LANG to set CLI language
-# Supported: en, zh-CN
-# export JV_LANG=en
-
-# Use JV_AUTO_UPDATE to set auto content update (yes/no)
-# After local operations that change Upstream Vault content
-# Next `jv` command will auto-run `jv update`
-export JV_AUTO_UPDATE=yes
-
-# Use JV_OUTDATED_MINUTES to set the expiration time (in minutes), requires JV_AUTO_UPDATE to be enabled
-# Next time the `jv` command is used, if the content is outdated, `jv update` will be automatically executed
-# When the set number is < 0, timeout-based update is disabled
-# When the set number = 0, update runs every time (not recommended)
-# When the set number > 0, update according to the specified time
-# If not set, the default is -1
-# export JV_OUTDATED_MINUTES=5
-
-# Use JV_TEXT_EDITOR to set text editor for `jv track --work` `jv align --work`
-# DEFAULT: $EDITOR environment variable, falling back to "jvii" if not set
-# export JV_TEXT_EDITOR=nano
-
-###############
-### ALIASES ###
-###############
-
-# Disable glob expansion for jv commands across shells
-if [ -n "$BASH_VERSION" ]; then # Bash
- alias jv='set -f; command jv; set +f'
- alias jvt='set -f; command jv track; set +f'
- alias jmv='set -f; command jv move; set +f'
-elif [ -n "$ZSH_VERSION" ]; then # Zsh
- alias jv='noglob jv'
- alias jvt='noglob jv track'
- alias jmv='noglob jv move'
-elif [ -n "$FISH_VERSION" ]; then # Fish
- function jv {
- command jv $@
- }
- function jvt {
- command jv track $@
- }
- function jmv {
- command jv move $@
- }
-fi
-
-alias jvh='jv here'
-alias jvu='jv update'
-
-##################
-### 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