Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh completion doesn't work with sudo #1981

Open
5 of 10 tasks
sim590 opened this issue Apr 14, 2020 · 2 comments
Open
5 of 10 tasks

zsh completion doesn't work with sudo #1981

sim590 opened this issue Apr 14, 2020 · 2 comments

Comments

@sim590
Copy link

sim590 commented Apr 14, 2020

  • I have read through the manual page (man fzf). But that doesn't apply anyway...
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • GNU/Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

Zsh completion for custom programs doesn't work when sudo is the first word on the command line. Usual completion with zsh does support that behaviour on the other hand, i.e. completion for some program name foo will work even though sudo is the first word on the command line.

However, this is not limited to custom definitions. The case of kill doesn't work. For instance, writing

$ kill **<TAB>

works, but the following doesn't:

$ sudo kill **<TAB>
@yyy33
Copy link

yyy33 commented May 24, 2020

The same goes for my bash

@junegunn
Copy link
Owner

Related #1992 #2130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants