Whenever I try to edit flake.nix I have a habit of typing vi flake. and
then hitting TAB, forgetting that flake.lock exists since I never interact
with it directly. I don't think there's any reason I would need to edit it
manually, so it would be great if I could configure bash to detect whether
I've typed vi flake. as a command and, if so, automatically assume that I
meant to type vi flake.nix instead.
Whenever I try to edit
flake.nix
I have a habit of typingvi flake.
and then hittingTAB
, forgetting thatflake.lock
exists since I never interact with it directly. I don't think there's any reason I would need to edit it manually, so it would be great if I could configurebash
to detect whether I've typedvi flake.
as a command and, if so, automatically assume that I meant to typevi flake.nix
instead.