Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
sudo processes completion with zstyle -e
- X-seq: zsh-users 12763
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: zsh-users ml <zsh-users@xxxxxxxxxx>
- Subject: sudo processes completion with zstyle -e
- Date: Mon, 7 Apr 2008 01:25:45 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
When using sudo it seems the $words array is not that useful in the
following context:
zstyle -e ':completion:*:processes' command 'if [[ $words[1] ==
sudo ]] reply="ps auxw"'
If I run
% sudo kill <TAB>
$words[1] contains "kill", not "sudo".
Is there another way to find out whether a command is run with sudo?
What I want is make the processes completion return all processes.
Sebastian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author