diff options
author | isaacs <i@izs.me> | 2010-05-14 11:50:09 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-14 11:50:09 +0400 |
commit | dcfcd6028d4daa4c36324fc1ed8a8569a6adff5a (patch) | |
tree | 752e0a20cd0b5534b68cb4c2e82446dd2e19399b /man/ls.1 | |
parent | 59d44c8dcec56f13fb3615aed7a410d4bc250c8b (diff) |
Update highlighting, and documentation.
Diffstat (limited to 'man/ls.1')
-rw-r--r-- | man/ls.1 | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -20,13 +20,20 @@ either installed or available in the registry, with their tags and whether or not they're active and/or stable. . .P -To filter a single package or state, pipe this command through grep. +To filter a single package or state, you can provide words to filter on +and highlight (if appropriate). For instance, to see all the stable +packages, you could do this: . .IP "" 4 . .nf -npm ls | grep @stable +npm ls @stable . .fi . .IP "" 0 +. +.P +Strings are matched using the JavaScript "split" function, so regular +expression strings are ok. However, the highlighting is a simple +split/join, so regexps probably won't get the funky colors. |