Open AnvarAtayev opened 2 years ago
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)
same on armbian, related? https://github.com/denisidoro/navi/issues/777
I have the same issue on MacOS Monterey (M1), and I think the problem is related to the hardcoded path of the config file containing a space, and not handled correctly by navi 2 things:
I would say issue was introduced in change #518 I don't code in Rust, so I can't propose a fix
Actually, in the current version, it's not working on Mac, because you can't have a config file (Navi doesn't find it because of the space), the checkout of new libraries works (I was able to get the defaults cheats), but navi doesn't see them (I was using an older version until recently when I switched to brew)
I was wrong, actually version 2.19 is working fine with the path, sticking to this one for now, but:
the default config file should be in
~/.config/navi
, not in Library (IMHO)
+1
Most CLI apps have the config in ~/.config
. Having the config file in a different location just makes dotfiles management more difficult, IMHO
The config dir is defined by https://crates.io/crates/directories-next
Changing it now would be a breaking change :/
I'm trying to understand if the problem is really with the space. Could you provide more logs / evidence?
"permission denied" seems to be unrelated to spaces
I am just wondering if I have installed navi correctly.
I am using macOS Monterey 12.5 and installed navi using homebrew via
brew install navi
. To install the shell widget, I pasted the following into the end of my.zshrc
file:(I do not have a
.bshrc
file, and thought this was the alternative).Having done the above step, I am now able to use navi by calling Ctrl + G as expected.
Entering
navi fn welcome
and entering theconfig
command, I get a permission denied error.I'm not sure how to overcome this. Also, I am noticing that it is trying to use
bash
instead ofzsh
. Not sure how to change this also.Any help would be appreciated.