When I enter a command that takes a process ID (such as kill and strace -p), ZSH's tab completion offers what looks like the PIDs of the processes running in my current shell session. How can I make it offer the PIDs of all running processes instead?


This will depend on the exact flavour of ps involved, but may run something along the lines of

zstyle ':completion:*:processes' command 'ps -A'
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.