Chef knife EDITOR variable unhappiness

I recently had to replace my main workstation because of a graphics card dying. It wasn’t all that big of a deal, thanks to the magic of regular backups and whatnot, but I found a very strange problem where when I tried to use knife to do any chef work that required editing anything in knife, I got the message: ERROR: RuntimeError: Please set EDITOR environment variable This was odd, since EDITOR was in fact set.