all repos — nixfiles @ a49b7f4551b035244b463dd328425c14474450d2

System and user configuration, managed by nix and home-manager

bin: make script debugging easier
Alan Pearce alan@alanpearce.eu
Sat, 04 May 2024 13:51:21 +0200
commit

a49b7f4551b035244b463dd328425c14474450d2

parent

ee235e3ae782b879628686708587d7fd17eb9e17

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M bin/home-managerbin/home-manager
@@ -138,6 +138,10 @@ end 
 set --function cmd $current_script_name $argv
 
+if contains -- -n $argv
+    set --prepend cmd echo
+end
+
 if set --query IN_NIX_SHELL
     eval $cmd
 else