mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 13:11:15 +02:00
fix nu variable. tweak shells (#1558)
This commit is contained in:
@@ -36,9 +36,9 @@ fn shells(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream
|
||||
let mut dict = TaggedDictBuilder::new(&tag);
|
||||
|
||||
if index == (*args.shell_manager.current_shell).load(Ordering::SeqCst) {
|
||||
dict.insert_untagged(" ", "X".to_string());
|
||||
dict.insert_untagged("active", "X".to_string());
|
||||
} else {
|
||||
dict.insert_untagged(" ", " ".to_string());
|
||||
dict.insert_untagged("active", " ".to_string());
|
||||
}
|
||||
dict.insert_untagged("name", shell.name());
|
||||
dict.insert_untagged("path", shell.path());
|
||||
|
Reference in New Issue
Block a user