summaryrefslogtreecommitdiff
path: root/scripts/jv_cli.sh
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-23 15:56:13 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-23 15:56:13 +0800
commit5ebd07e52b4ebc1f59b603bbd4fe781871056755 (patch)
tree61e66ef0477d3f61091b8a3cd112b570824a0a23 /scripts/jv_cli.sh
parente011ca752bd4befc73e33c72e59e4e6492ac1aa7 (diff)
Add auto update feature via JV_AUTO_UPDATE env var
When enabled, automatically runs `jv update` if vault content has been modified by local operations.
Diffstat (limited to 'scripts/jv_cli.sh')
-rw-r--r--scripts/jv_cli.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/jv_cli.sh b/scripts/jv_cli.sh
index 9eb56a9..09b25ab 100644
--- a/scripts/jv_cli.sh
+++ b/scripts/jv_cli.sh
@@ -9,6 +9,11 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# 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
+
###############
### ALIASES ###
###############