-
Notifications
You must be signed in to change notification settings - Fork 732
Description
Hello. I've looked around and haven't found a solution to this problem.
Basically I have a bunch of normal sessions open but also one running sudo -s for doing the occasional command that requires root like renice or ifconfig. The issue is the root session ends up with permissions issues if I hit the up or down key:
(result of typing up then down)
(this is in MacOS Ventura if that matters)
This is the result for compaudit:
❯ compaudit There are insecure directories and files: /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions /opt/homebrew/share/zsh/site-functions /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete /Users/ball/.oh-my-zsh /Users/ball/.oh-my-zsh /Users/ball/.oh-my-zsh/custom /Users/ball/.oh-my-zsh/custom /opt/homebrew/share/zsh /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__command /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__compadd_opts_len /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__history_lines /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__recent_paths /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__should_insert_unambiguous /opt/homebrew/Cellar/zsh-autocomplete/24.09.04/share/zsh-autocomplete/Completions/_autocomplete__unambiguous /opt/homebrew/share/zsh/site-functions/_brew /opt/homebrew/share/zsh/site-functions/_scrcpy /opt/homebrew/share/zsh/site-functions/_yt-dlp ~ root@MacBook-Pro ❯
compaudit passes without error in the normal non-root sessions.
None of the other zsh plugins appears to have an issue running under sudo. Since the session starts as a regular user zsh already is loaded so I can't think of a work-around like disabling zsh-completions for one session unless I enable root user which I don't want to do.