mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 11:28:05 +02:00
Move config to be an env var (#5230)
* Move config to be an env var * fix fmt and tests
This commit is contained in:
@ -317,7 +317,7 @@ Format: #
|
||||
let list: bool = call.has_flag("list");
|
||||
let escape: bool = call.has_flag("escape");
|
||||
let osc: bool = call.has_flag("osc");
|
||||
let use_ansi_coloring = stack.get_config()?.use_ansi_coloring;
|
||||
let use_ansi_coloring = engine_state.get_config().use_ansi_coloring;
|
||||
|
||||
if list {
|
||||
return generate_ansi_code_list(engine_state, call.head, use_ansi_coloring);
|
||||
|
Reference in New Issue
Block a user