ZSH installer fails on OSX if user has a restricted account
austinjones opened this issue · comments
If the active user doesn't have admin permissions and doesn't have oh-my-zsh, the zsh installer fails with 'No such file or directory'.
Expected Behavior
The installer succeeds and autocomplete works.
Actual Behavior
The installer fails with 'No such file or directory'.
You could try to find a writable path in $FPATH
. Another way is to let the user put the script wherever they want.
@lilydjwg Hmm, that might work! I've been trying to keep the files that tab touches to static list, so that it can clean up after itself with future versions of tab, or environmental changes (like installing oh-my-zsh). I think I might need to sacrifice on that for the usability improvement in this case.
I even tried adding an entry to FPATH in the installer, but it didn't work because the change to FPATH has to be before autoload -U compinit && compinit
in zshrc.
Anyway, thanks for the suggestion! This is a tough one...
Do you wish to apply the modifications? yes
Installing bash...
Installing starship...
Installing zsh...
Error: zsh installation failed:
Caused by:
0: Failed to write '/usr/local/share/zsh/site-functions/_tab'
1: No such file or directory (os error 2)
I use zimfw rather than oh-my-zsh