Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: menuselection with manpages



On May 19, 12:09am, Frank Terbeck wrote:
} Subject: Re: menuselection with manpages
}
} -  compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
} +  compadd "$@" -P "$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
} 
}   % man 5 5 crontab
} 
} which is not what I would want. How could I get this to work sanely?

Try:

  if ((CURRENT > 2))
  then compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
  else compadd "$@" -P "$sect " - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
  fi



Messages sorted by: Reverse Date, Date, Thread, Author