Make brew-installed apps available to superuser?

Hey there. I've installed Neovim via Homebrew, but the superuser can't seem to use it (via sudo nvim). How can I make Homebrew-installed apps available to the superuser?
Solution:
Figured this one out myself and wanted to share the answer so that others could benefit... or maybe so that someone could tell me I did it wrong. 😅 I added the Homebrew bin directory to the secure path by first running sudo visudo and then adding /home/linuxbrew/.linuxbrew/bin/ to the end of secure_path....
Jump to solution
5 Replies
Kyle Gospo
Kyle Gospo•4mo ago
Vim is pre-installed Just remove the one you did via brew
Solution
RadDevon
RadDevon•4mo ago
Figured this one out myself and wanted to share the answer so that others could benefit... or maybe so that someone could tell me I did it wrong. 😅 I added the Homebrew bin directory to the secure path by first running sudo visudo and then adding /home/linuxbrew/.linuxbrew/bin/ to the end of secure_path.
RadDevon
RadDevonOP•4mo ago
Looking to run Neovim as superuser, not Vim.
Kyle Gospo
Kyle Gospo•4mo ago
rpm-ostree install neovim brew cannot run as root
RadDevon
RadDevonOP•4mo ago
Seems to be working. What am I missing here? I can now run sudo nvim and it works.
Want results from more Discord servers?
Add your server