~ruther/nixos-config

90b6c1b070df88e04d008ea8b4180f488efc5f05 — Frantisek Bohacek 1 year, 5 months ago 739b90f
feat: add alias for locating binaries
1 files changed, 6 insertions(+), 0 deletions(-)

M modules/shell/zsh.nix
M modules/shell/zsh.nix => modules/shell/zsh.nix +6 -0
@@ 20,6 20,12 @@
        enable = true;
        plugins = [ "git" ];
      };

      initExtra = ''
        function loc {
          nix-locate --top-level -w /bin/$1
        }
      '';
    };
  };
}

Do not follow this link