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

Patch to color more correctly the command behind "sudo" #610

Closed
wants to merge 1 commit into from

Commits on Mar 31, 2019

  1. Add the function "zsh_highlight_main__test_type_builtin" also the cha…

    …nge of PATH can't modify the behavior of the commands in "zsh_highlight_main__type"
    
    In _zsh_highlight_main__type :
     - the calls to "builtin type -w -- $1" are replaced by call to "sh_highlight_main__test_type_builtin"
     - if ZSH_HIGHLIGHT_SPECIAL_PATH exists but is empty, "foo" in "sudo foo" is always red
     - if ZSH_HIGHLIGHT_SPECIAL_PATH is not empty, zsh searchs in the PATH "ZSH_HIGHLIGHT_SPECIAL_PATH" to know if the command "foo" in "sudo foo" exists
     - if "foo" is in ZSH_HIGHLIGHT_SPECIAL_COMMAND then "Admin" says that user has access to this command : foo in "sudo foo" is green
    David-Ansart committed Mar 31, 2019
    Configuration menu
    Copy the full SHA
    70deca2 View commit details
    Browse the repository at this point in the history