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

zsh completer for ps, procees viewer



Hello,

On my gentoo system, I notice that _ps is the below and does not show
the options for ps, the process viewer.

which _ps
_ps () {
        local expl ext=''
        if [[ "$1" = '-z' ]]
        then
                ext='(|.bz2|.gz|.Z)'
                shift
        fi
        _description files expl 'PostScript file'
        _files "$@" "$expl[@]" -g "*.(#i)(ps|eps)$ext(-.)"
}
_ps is a shell function
_ps:

Just wanted to check if it is the same across other distros.

It is located at /usr/share/zsh/5.0.2/functions/Completion/Unix/_ps in
my system.

Is there a completion file for ps, the process viewer, floating around?

Thanks
Joe



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