Pipe ipkg/gpkg through less for Zsh pkgtools as well
authorSteve Youngs <steve@steveyoungs.com>
Wed, 4 May 2016 06:58:45 +0000 (16:58 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Wed, 4 May 2016 06:58:45 +0000 (16:58 +1000)
Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/zsh/zsh-pkgtools

index 6ee2887..2b0dfd6 100644 (file)
@@ -119,7 +119,7 @@ ipkg()
         else
                 local top=$(grep -n "Install Notes" ~$argv[1]/.project|cut -d: -f1)
                 local bot=$(grep -n "General Notes" ~$argv[1]/.project|cut -d: -f1)
-                sed -n ${top},${bot}p  ~$argv[1]/.project
+                sed -n ${top},${bot}p  ~$argv[1]/.project|less
         fi
 }
                
@@ -132,7 +132,7 @@ gpkg()
         else
                 local top=$(grep -n "General Notes" ~$argv[1]/.project|cut -d: -f1)
                 local bot=$(grep -n "CONTENTS" ~$argv[1]/.project|cut -d: -f1)
-                sed -n ${top},${bot}p ~$argv[1]/.project
+                sed -n ${top},${bot}p ~$argv[1]/.project|less
         fi
 }