Skip to content

Commit c78fa98

Browse files
authored
Use alias instead of a wrapper script (nvim-lua#524)
It is much easier to stick an alias statement in `~/.{z,ba}shrc` than create a script, invoke another instance of interpreter and then run neovim
1 parent 2fc5ece commit c78fa98

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,11 @@ Each PR, especially those which increase the line count, should have a descripti
156156
* This includes your existing init.lua and the neovim files in `~/.local` which can be deleted with `rm -rf ~/.local/share/nvim/`
157157
* You may also want to look at the [migration guide for lazy.nvim](https://github.com/folke/lazy.nvim#-migration-guide)
158158
* Can I keep my existing configuration in parallel to kickstart?
159-
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME` to maintain multiple configurations. For example you can install the kickstart configuration in `~/.config/nvim-kickstart` and create a script `~/bin/nvim-kickstart`:
159+
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME` to maintain multiple configurations. For example you can install the kickstart configuration in `~/.config/nvim-kickstart` and create an alias:
160160
```
161-
#!/bin/sh
162-
exec env NVIM_APPNAME=nvim-kickstart nvim "$@"
161+
alias nvim-kickstart='NVIM_APPNAME="nvim-kickstart" nvim'
163162
```
164-
When you run Neovim with `nvim-kickstart` it will use the alternative config directory and the matching local directory: `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim distribution that you would like to try out.
163+
When you run Neovim using `nvim-kickstart` alias it will use the alternative config directory and the matching local directory `~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim distribution that you would like to try out.
165164
* What if I want to "uninstall" this configuration:
166165
* See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information
167166
* Are there any cool videos about this plugin?

0 commit comments

Comments
 (0)