about summary refs log tree commit diff
path: root/src/nix-store/nix-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-20T13·12+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-20T13·12+0200
commit392430b2c4ceb2e476abe2b3acc928581b2a1445 (patch)
tree30db8572f28c8def55f3b4dcce988a6ed4c778e9 /src/nix-store/nix-store.cc
parent894fa5e42dd952caa702794964a13845ccf6f29a (diff)
nix-store -l: Automatically pipe output into $PAGER
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 6a297b429239..abe4c7e3923f 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -459,6 +459,8 @@ static void opReadLog(Strings opFlags, Strings opArgs)
 {
     if (!opFlags.empty()) throw UsageError("unknown flag");
 
+    RunPager pager;
+
     foreach (Strings::iterator, i, opArgs) {
         Path path = useDeriver(followLinksToStorePath(*i));