Skip to content

Commit 7be4fd6

Browse files
committed
docs(cli): 补充 sudo 配置目录说明
1 parent 7954d02 commit 7be4fd6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/cortex-cli/src/cli/styles.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ pub const AFTER_HELP: &str = color_print::cstr!(
3535
<green,bold>cortex resume --last</> Continue most recent session
3636
3737
<cyan,bold>🌍 ENVIRONMENT VARIABLES</>
38-
<yellow>CORTEX_HOME</> Override config directory (default: ~/.config/cortex)
38+
<yellow>CORTEX_CONFIG_DIR</> Highest-priority Cortex home override
39+
<yellow>CORTEX_HOME</> Override Cortex home directory
3940
<yellow>CORTEX_API_KEY</> API key (alternative to --with-api-key)
4041
<yellow>CORTEX_MODEL</> Default model (alternative to --model)
4142
<yellow>CORTEX_LOG_LEVEL</> Log verbosity (error, warn, info, debug, trace)
4243
<yellow>NO_COLOR</> Disable colored output (set to '1' or 'true')
4344
<yellow>VISUAL</>/<yellow>EDITOR</> Editor for /edit command
45+
<dim>sudo/root</> Under sudo, Cortex prefers SUDO_USER or SUDO_UID home resolution.
46+
<dim> </> Bare root uses root's home; set CORTEX_HOME or CORTEX_CONFIG_DIR to override.
4447
4548
<cyan,bold>📁 PATHS</>
4649
<dim>Config</> ~/.config/cortex/config.toml

0 commit comments

Comments
 (0)