From 0336466d648262c4b3ab5fe28d47ebd3bfb966f9 Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Thu, 18 Apr 2024 15:38:03 -0700 Subject: [PATCH] lf, change lfcd to lf in zshrc --- hmModules/apps/shells/zsh/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hmModules/apps/shells/zsh/default.nix b/hmModules/apps/shells/zsh/default.nix index 713a527..9e5ee6b 100644 --- a/hmModules/apps/shells/zsh/default.nix +++ b/hmModules/apps/shells/zsh/default.nix @@ -18,11 +18,11 @@ history.path = "${config.xdg.dataHome}/zsh/history"; initExtra = let lf = lib.optionalString config.lf.enable '' - # Lf change directory command - lfcd () { - cd "$(command lf -print-last-dir "$@")" + # Lf changes directory + lf () { + cd "$(command ${pkgs.lf}/bin/lf -print-last-dir "$@")" } - bindkey -s '^o' 'lfcd\n' + bindkey -s '^o' 'lf\n' ''; in lf + ''