I've downloaded neovim 5.1 and made a symlink to it in .local/bin folder. After that I've added it to $PATH through .bashrc and aliased to vim:
alias vim="nvim"
export PATH=$HOME/.local/bin:$PATH
If I use vim command from inside the wsl I successfully launch neovim 5.1. However if I instead try to launch vim from powershell (wsl vim) .bashrc is ignored and vim 8.1 is launched instead. How can I make Powershell to use .bashrc in interoperability mode?
CodePudding user response:
wsl bash -ic vim
-itellsbashthat the shell is interactive, which causes~/.bashrcto be loaded.-ccause the next argument to be executed as a command(s); it also causes thebashprocess to exit after command execution.
