about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-03 17:17:47 +0200
committerene <ene@sils.li>2023-04-03 17:17:47 +0200
commit67799299675edd57e82269d37da34f012eb53153 (patch)
tree66bbecf1f450abbe279e93b646252015e88118cb /home-manager
parentFix(hm/conf/lf): Add 'git' to the open dependencies (diff)
downloadnixos-config-67799299675edd57e82269d37da34f012eb53153.tar.gz
nixos-config-67799299675edd57e82269d37da34f012eb53153.zip
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.
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/config/lf/default.nix5
1 files changed, 3 insertions, 2 deletions
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";