summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/jv_cli.ps14
-rw-r--r--scripts/jv_cli.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/jv_cli.ps1 b/scripts/jv_cli.ps1
index e8d3674..123e28d 100644
--- a/scripts/jv_cli.ps1
+++ b/scripts/jv_cli.ps1
@@ -13,6 +13,10 @@ $SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Next `jv` command will auto-run `jv update`
$env:JV_AUTO_UPDATE = "yes"
+# 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
+$env:JV_TEXT_EDITOR = "nano"
+
###############
### ALIASES ###
###############
diff --git a/scripts/jv_cli.sh b/scripts/jv_cli.sh
index 1e382d7..eb7699a 100644
--- a/scripts/jv_cli.sh
+++ b/scripts/jv_cli.sh
@@ -14,6 +14,10 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Next `jv` command will auto-run `jv update`
export JV_AUTO_UPDATE=yes
+# 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 ###
###############