Skip to content
Permalink
Browse files

Support NO_COLOR to default plain to false.

  • Loading branch information
c-blake committed Nov 18, 2019
1 parent 9102b34 commit 3f69e692db45c63320c3cbd2d3910208437687f9
Showing with 3 additions and 1 deletion.
  1. +3 −1 lc.nim
4 lc.nim
@@ -57,7 +57,9 @@ type # fileName Dtype Stat lnTgt ACL Magic Capability
###### Documentation/CLI; Early to use lsCfFromCL in for local config tweaks.
const nimbleFile = staticRead "lc.nimble"
clCfg.version = nimbleFile.fromNimble "version"
let cfDfl* = LsCf(format:"%f", glyph:" -> ", recurse:1, nColumn:999, padMax:999)
proc c_getenv(env: cstring): cstring {.importc: "getenv", header: "<stdlib.h>".}
let cfDfl* = LsCf(format: "%f", glyph: " -> ", recurse: 1, nColumn: 999,
padMax: 999, plain: (c_getenv("NO_COLOR") != nil))

const ess: seq[string] = @[]
initGen(cfDfl, LsCf, "paths", @["ALL AFTER paths"], "inLsCf")

0 comments on commit 3f69e69

Please sign in to comment.
You can’t perform that action at this time.