diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-08 20:11:22 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-08 20:11:22 +0800 |
| commit | 37e991b7eb1f57090b98ebc02a7fad6a4971e876 (patch) | |
| tree | 53e4c1dca9de146dc1806c654601667e4dced0d1 /scripts/jv_cli.ps1 | |
| parent | f87dc291140ccb63919ab20f56c4f86f6df38dde (diff) | |
Add jvii binary and set default text editor
- Add jvii as a new binary target in Cargo configuration
- Set JV_TEXT_EDITOR environment variable to "nano" in CLI scripts
- Implement jvii binary with version command support
- Add get_default_editor() utility that checks JV_TEXT_EDITOR, EDITOR,
then defaults to "jvii"
Diffstat (limited to 'scripts/jv_cli.ps1')
| -rw-r--r-- | scripts/jv_cli.ps1 | 4 |
1 files changed, 4 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 ### ############### |
