CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
With nb completions install --download, nb tries to install zsh completions into /usr/share/zsh/site-functions/. This should work, except on macOS, that folder is protected by the system and not even sudo can grant user/group write permission to it.
Run sudo nb completions install -d on a version of macOS, which zsh has been its default shell and homebrew has been installed.
Solution
One could use their own zsh/site-functions/ directory.
For instance, brew give it to /opt/homebrew/share/zsh/site-functions/. nb should install zsh completion scripts to such location. Other zsh completions there has been working well.
Alternatives
Since completions for other 2 shells has been installed to their correct brew directories, I believe the Solution is viable and there's no better/simpler approach.
Description
With
nb completions install --download
,nb
tries to installzsh
completions into/usr/share/zsh/site-functions/
. This should work, except on macOS, that folder is protected by the system and not evensudo
can grant user/group write permission to it.nb completions install -d
outputs as followsRepro
Run
sudo nb completions install -d
on a version of macOS, whichzsh
has been its default shell andhomebrew
has been installed.Solution
One could use their own
zsh/site-functions/
directory.For instance,
brew
give it to/opt/homebrew/share/zsh/site-functions/
.nb
should install zsh completion scripts to such location. Otherzsh
completions there has been working well.Alternatives
Since completions for other 2 shells has been installed to their correct
brew
directories, I believe the Solution is viable and there's no better/simpler approach.