mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Merge pull request #1439 from rsteube/themes-help-interactive-only
only print themes hint in interactive mode
This commit is contained in:
commit
2d22c705ba
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
|
|
||||||
|
- only print themes hint in interactive mode (`bat --list-themes`), see #1439 (@rsteube)
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
## Syntaxes
|
## Syntaxes
|
||||||
|
@ -200,11 +200,6 @@ pub fn list_themes(cfg: &Config) -> Result<()> {
|
|||||||
.ok();
|
.ok();
|
||||||
writeln!(stdout)?;
|
writeln!(stdout)?;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
for theme in assets.themes() {
|
|
||||||
writeln!(stdout, "{}", theme)?;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
writeln!(
|
writeln!(
|
||||||
stdout,
|
stdout,
|
||||||
"Further themes can be installed to '{}', \
|
"Further themes can be installed to '{}', \
|
||||||
@ -213,6 +208,11 @@ pub fn list_themes(cfg: &Config) -> Result<()> {
|
|||||||
https://github.com/sharkdp/bat#adding-new-themes",
|
https://github.com/sharkdp/bat#adding-new-themes",
|
||||||
config_file().join("themes").to_string_lossy()
|
config_file().join("themes").to_string_lossy()
|
||||||
)?;
|
)?;
|
||||||
|
} else {
|
||||||
|
for theme in assets.themes() {
|
||||||
|
writeln!(stdout, "{}", theme)?;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user