From 835821678a6b11de480a8aa154563a905871176b Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 22 Apr 2022 15:38:31 +0300 Subject: [PATCH] chore(nix/home): add aliases for nvim --- nix/home.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nix/home.nix b/nix/home.nix index d4d6e45..9c44f59 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -151,11 +151,18 @@ in fi ''; - shellAliases = { - ls = "${pkgs.exa}/bin/exa -1"; - ll = "${pkgs.exa}/bin/exa -l"; - lt = "${pkgs.exa}/bin/exa --tree"; - }; + shellAliases = + let + exa = "${pkgs.exa}/bin/exa"; + in { + # exa + ls = "${exa} -1"; + ll = "${exa} -l"; + lt = "${exa} --tree"; + # nvim + vi = "nvim"; + vim = "nvim"; + }; }; # enable git VCS