summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
authorAlan Pearce2024-05-04 13:51:21 +0200
committerAlan Pearce2024-05-18 12:17:12 +0200
commita49b7f4551b035244b463dd328425c14474450d2 (patch)
tree748da82182f613802f05f771a090dd22d9bc76d4 /bin
parentee235e3ae782b879628686708587d7fd17eb9e17 (diff)
downloadnixfiles-a49b7f4551b035244b463dd328425c14474450d2.tar.lz
nixfiles-a49b7f4551b035244b463dd328425c14474450d2.tar.zst
nixfiles-a49b7f4551b035244b463dd328425c14474450d2.zip
bin: make script debugging easier
Diffstat (limited to 'bin')
-rwxr-xr-xbin/home-manager4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/home-manager b/bin/home-manager
index a6e89ce6..de6f4edb 100755
--- a/bin/home-manager
+++ b/bin/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