From 90b6c1b070df88e04d008ea8b4180f488efc5f05 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Thu, 19 Oct 2023 21:07:43 +0200 Subject: [PATCH] feat: add alias for locating binaries --- modules/shell/zsh.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/shell/zsh.nix b/modules/shell/zsh.nix index cf939e2..928d829 100644 --- a/modules/shell/zsh.nix +++ b/modules/shell/zsh.nix @@ -20,6 +20,12 @@ enable = true; plugins = [ "git" ]; }; + + initExtra = '' + function loc { + nix-locate --top-level -w /bin/$1 + } + ''; }; }; } -- 2.48.1