Does neovim set any environment variables that would let me detect from bash that the terminal is neovim? I want to change the behavior of my
.bashrc if neovim is the terminal.
I compared the output of running
Aside from alxndr's example, you can set one yourself with:
This is especially useful as a simple way to pass information to the shell; for example: