Skip to content
Permalink
Browse files
support for NO_COLOR: https://no-color.org/ and also bumped version n…
…umber to 0.6.2
  • Loading branch information
Frederik Delaere committed Oct 9, 2018
1 parent 502a0ff commit 87a45f96a9bd45b86300a6027bb29855778d4f5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,6 +1,6 @@
[package]
name = "rsmodules"
version = "0.6.1"
version = "0.6.2"
authors = ["Frederik Delaere <frederik.delaere@ugent.be>"]

[dependencies]
@@ -500,7 +500,7 @@ pub fn setenv(var: &str, val: &str, shell: &str) -> String {
}

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

0 comments on commit 87a45f9

Please sign in to comment.