# Ssh replacement for system zmore script.
intr PIPE
if (!$?argv) then exit
if ($argc < 2) then
  secho "zmore <file> [<file> .. [<file>] ..]"
  exit
endif
for x = 1 to $argc-1
  if ($x>1) then
    secho -n "%i--More--%I (Next file: $argv[$x])"
    input -c ch
    secho
    if ($ch =~ "[qQeEnNxX\e]") then exit
  endif
  secho "------> $argv[$x] <------"
  zcat $argv[$x] | more
next
