summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorReuben D'Netto <rdnetto@gmail.com>2017-11-03 21:46:29 +1100
committerAndrew Gallant <jamslam@gmail.com>2017-11-03 06:46:29 -0400
commit256aeb55468d57a179447c8b2cd64ada998987c5 (patch)
tree438a6bd5e77084cf9083250995ae751876688523 /README.md
parenta9377da624d8efde460cfb032456a70bb2b24835 (diff)
Added example for --colors to README
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 89169df5..6f659749 100644
--- a/README.md
+++ b/README.md
@@ -462,6 +462,19 @@ that the console will use for printing to UTF-8 with
will also reset when PowerShell is restarted, so you can add that line
to your profile as well if you want to make the setting permanent.
+#### How do I make the output look like ag's?
+
+Use the `--colors` flag, like so:
+
+ rg --colors line:fg:yellow \
+ --colors line:style:bold \
+ --colors path:fg:green \
+ --colors path:style:bold \
+ --colors match:fg:black \
+ --colors match:bg:yellow \
+ --colors match:style:nobold \
+ foo
+
### Known issues
#### I just hit Ctrl+C in the middle of ripgrep's output and now my terminal's foreground color is wrong!