May 2018
Intermediate to advanced
168 pages
4h 2m
English
| Tip 20 | Applying Customizations to Your Shell in a Terminal Buffer |

At a glance, you may not be able to tell whether a shell is running within a terminal buffer or outside of Neovim. In this tip, you’ll find out how you can customize the prompt for your shell so that it appears differently inside of a terminal buffer.
Open a shell in a terminal outside of Neovim and take note of how your prompt looks. Then launch Neovim with a shell running inside a terminal buffer:
| => | $ nvim +terminal |
Can you tell which shell is running inside of Neovim and which one is running outside? You could make it more obvious by changing how the prompt looks in each ...