mirror of
https://github.com/nushell/nushell.git
synced 2025-04-18 18:28:19 +02:00
added the other table "themes" so that they could be used via config (#2365)
This commit is contained in:
parent
05aca1c157
commit
e292bb46bb
@ -89,7 +89,10 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme {
|
|||||||
|
|
||||||
vars.get("table_mode")
|
vars.get("table_mode")
|
||||||
.map_or(nu_table::Theme::compact(), |mode| match mode.as_string() {
|
.map_or(nu_table::Theme::compact(), |mode| match mode.as_string() {
|
||||||
|
Ok(m) if m == "basic" => nu_table::Theme::basic(),
|
||||||
|
Ok(m) if m == "compact" => nu_table::Theme::compact(),
|
||||||
Ok(m) if m == "light" => nu_table::Theme::light(),
|
Ok(m) if m == "light" => nu_table::Theme::light(),
|
||||||
|
Ok(m) if m == "thin" => nu_table::Theme::thin(),
|
||||||
_ => nu_table::Theme::compact(),
|
_ => nu_table::Theme::compact(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user