about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/.config/nixpkgs/home.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index 51e857b823b5..08dd489b9988 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -105,6 +105,15 @@
       sysust = "systemctl --user status";
     };
     promptInit = builtins.readFile ../fish/prompt.fish;
+    functions = {
+      ptree = {
+        body = ''
+          for pid in (pgrep $argv[1])
+            pstree -s -p $pid
+          end
+        '';
+      };
+    };
   };
 
   programs.fzf = rec {