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:Jump to 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
....5 Replies
Vim is pre-installed
Just remove the one you did via brew
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
.Looking to run Neovim as superuser, not Vim.
rpm-ostree install neovim
brew cannot run as rootSeems to be working. What am I missing here? I can now run
sudo nvim
and it works.