We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9102b34 commit 3f69e69Copy full SHA for 3f69e69
1 file changed
lc.nim
@@ -57,7 +57,9 @@ type # fileName Dtype Stat lnTgt ACL Magic Capability
57
###### Documentation/CLI; Early to use lsCfFromCL in for local config tweaks.
58
const nimbleFile = staticRead "lc.nimble"
59
clCfg.version = nimbleFile.fromNimble "version"
60
-let cfDfl* = LsCf(format:"%f", glyph:" -> ", recurse:1, nColumn:999, padMax:999)
+proc c_getenv(env: cstring): cstring {.importc: "getenv", header: "<stdlib.h>".}
61
+let cfDfl* = LsCf(format: "%f", glyph: " -> ", recurse: 1, nColumn: 999,
62
+ padMax: 999, plain: (c_getenv("NO_COLOR") != nil))
63
64
const ess: seq[string] = @[]
65
initGen(cfDfl, LsCf, "paths", @["ALL AFTER paths"], "inLsCf")
0 commit comments