Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select neovim config with NVIM_APPNAME environment variable #540

Open
MattiaSilvestri opened this issue May 16, 2024 · 1 comment

Comments

@MattiaSilvestri
Copy link

I use neovim as my default text editor, and I recently started to use the NVIM_APPNAME env variable to select between the neovim config I have in my config folder. I set an alias in my .zshrc file so that every time I type vim I get a specific config loaded up, like this: alias vim="NVIM_APPNAME=custom_config nvim". However, I noticed that joshuto doesn't respect shell aliases or commands other than the binary of the app itself, making me unable to tell joshuto which config to use and forcing me to use the default one. Is there any way to solve this issue?

@kamiyaa
Copy link
Owner

kamiyaa commented Jul 6, 2024

Yeah, alias is a shell concept so joshuto won't really know about it without reading .bashrc, .zshrc etc.

One way to fix this is to add a shell script to your path.
ie.

vim

#/bin/bash

NVIM_APPNAME=custom_config nvim

and then place it inside one of your path directories.
Then joshuto will be able to see it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants