Hacker News new | ask | show | jobs
by rektide 1178 days ago
One of the things that changed my life recently, that I hadn't seen before: NeoVim has a NVIM_APPNAME variable that lets you change the app name.

So when I wanted to try AstroVim, I just set NVIM_APPNAME=astrovim, and dropped the files in ~/.config/astrovim instead of blowing up my existing (shitty) ~/.config/nvim.

I really wish the idea of configurable appnames was a part of the spec! (or a well-known extension!)

3 comments

It's a very recent neovim feature, so it has not been around to discover for that long
Yes, it's only a month old!

https://github.com/neovim/neovim/pull/22128

I actually have something similar in some of my old old projects. And I'd expect I ripped the idea off from somewhere. But I don't know who to cite. :(

Historically a lot of programs would use argv[0] as their name. Vi-family editors do have an excuse not to do that, since vi uses its name for other purposes, e.g. `view` for readonly.
Thanks for this tips! Didn't knew it either