Skip to content

Commit 87a45f9

Browse files
author
Frederik Delaere
committed
support for NO_COLOR: https://no-color.org/ and also bumped version number to 0.6.2
1 parent 502a0ff commit 87a45f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsmodules"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
authors = ["Frederik Delaere <frederik.delaere@ugent.be>"]
55

66
[dependencies]

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ pub fn setenv(var: &str, val: &str, shell: &str) -> String {
500500
}
501501

502502
fn bold<'a>(shell: &str, msg: &'a str) -> ansi_term::ANSIGenericString<'a, str> {
503-
if shell == "noshell" || shell == "perl" || shell == "python" || env::var("TERM") == Ok(String::from("")) {
503+
if shell == "noshell" || shell == "perl" || shell == "python" || env::var("TERM") == Ok(String::from("")) || env::var("NO_COLOR").is_ok() {
504504
return Style::new().paint(msg);
505505
}
506506

0 commit comments

Comments
 (0)