zsh's killall process tab completion should match bash's

Bug #204234 reported by Paulus
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
Expired
Wishlist
Unassigned

Bug Description

Binary package hint: zsh

Version: 4.3.4-14ubuntu2 (gutsy)

Steps to reproduce: killall p<TAB>
Result: only shows "ps"
Expected: show ALL the user's processes whose command starts with p, as Ubuntu's bash does

Adding this to ~/.zshrc seems to fix it for me: zstyle ':completion:*:killall:*' command 'ps -u $USER -o cmd'

A proper fix should probably touch /usr/share/zsh/4.3.4/functions/Completion/Unix/_killall

Revision history for this message
Reinhard Tartler (siretart) wrote :

I cannot confirm this behavior with hardy's zsh package.

could you please retry it with that version?

Changed in zsh:
status: New → Incomplete
Revision history for this message
Paulus (donmatteo) wrote :

It hasn't changed for me, neither in hardy nor in intrepid. Same result with nuked ~/.zshenv and ~/.zshrc. I also had it confirmed by someon on IRC.

Changed in zsh:
status: Incomplete → New
Daniel T Chen (crimsun)
Changed in zsh:
importance: Undecided → Wishlist
Revision history for this message
acidrums4 (acidrums4) wrote :

Very late, but hope it can help to someone. I found a solution a few moments ago...

Add the following lines to your /etc/zsh/zshrc (or file containing zsh configuration, I don't know what file is in ubuntu, I use gentoo):

zstyle ':completion:*:processes' command 'ps -ax'
zstyle ':completion:*:processes-names' command 'ps -aeo comm='
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:*:killall:*:processes-names' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:*:killall:*' menu yes select

With this you will be able to kill processes with 'kill' with process name or ID. Hope this can help!

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Is this still an issue for you? Which Ubuntu version do you use? Thank you for telling us!

Changed in zsh (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for zsh (Ubuntu) because there has been no activity for 60 days.]

Changed in zsh (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.