summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/jv_cli.ps15
-rw-r--r--scripts/jv_cli.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/jv_cli.ps1 b/scripts/jv_cli.ps1
index 0584c21..b77997c 100644
--- a/scripts/jv_cli.ps1
+++ b/scripts/jv_cli.ps1
@@ -8,6 +8,11 @@ $SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Supported: en, zh-CN
# $env: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`
+$env:JV_AUTO_UPDATE = "yes"
+
###############
### ALIASES ###
###############
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 ###
###############