From 67799299675edd57e82269d37da34f012eb53153 Mon Sep 17 00:00:00 2001 From: ene Date: Mon, 3 Apr 2023 17:17:47 +0200 Subject: Fix(hm/conf/lf): Keep path for cmds Otherwise, opening a file with the 'open' cmd would clear the path completely. This would make somethings like 'nix develop' completely useless. --- home-manager/config/lf/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'home-manager/config') diff --git a/home-manager/config/lf/default.nix b/home-manager/config/lf/default.nix index 5d766b24..108378a1 100644 --- a/home-manager/config/lf/default.nix +++ b/home-manager/config/lf/default.nix @@ -9,7 +9,7 @@ dependencies, ... }: - sysLib.makeShellScriptWithLibrary { + sysLib.makeShellScriptWithLibraryAndKeepPath { name = "${builtins.baseNameOf file}"; script = file; dependencies = dependencies ++ (builtins.attrValues {inherit (pkgs) dash coreutils;}); @@ -134,7 +134,7 @@ in { fzf_jump = shell { file = ./cmds/fzf_jump; dependencies = builtins.attrValues { - inherit (pkgs) fzf; + inherit (pkgs) fzf lf gnused; }; }; help = shell { @@ -293,6 +293,7 @@ in { grp = "cd ~/repos/python"; grc = "cd ~/repos/c"; gra = "cd ~/repos/auto_hot_key"; + grn = "cd ~/repos/nix"; grt = "cd ~/repos/tex"; grs = "cd ~/repos/shell"; grch = "cd ~/repos/chroot"; -- cgit 1.4.1