aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-01-25 10:54:29 +0100
committerMartin Fischer <martin@push-f.com>2026-01-25 10:54:41 +0100
commit5fad59be3d73df8b66f72a855091b1b2aa5f0963 (patch)
treef7d3c47b58c61b2fb61a7daa1ef96d35cc859a30
parent2221c0037cd039d82eb45182e75c2b7bd6224a24 (diff)
fix(workstation): make ed not launch editor on Ctrl+C
-rwxr-xr-xnixos/profiles/workstation/scripts/ed3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/profiles/workstation/scripts/ed b/nixos/profiles/workstation/scripts/ed
index a3dd433..bed7d79 100755
--- a/nixos/profiles/workstation/scripts/ed
+++ b/nixos/profiles/workstation/scripts/ed
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
-$VISUAL $(find . -not -path "*/.*" | sk --no-info "$@")
+files=$(find . -not -path "*/.*" | sk --no-info "$@") || exit
+$VISUAL "$files"