From a5a07a8792767a05568cf39e5a382ff11f838347 Mon Sep 17 00:00:00 2001 From: Erik Simon Date: Fri, 2 Oct 2026 20:31:06 +0200 Subject: [PATCH] chore(scripts): edit_secrets opens Zed when installed Takes precedence over the shell's $EDITOR (nano on terra); falls back to the old $EDITOR/nano logic elsewhere. Co-Authored-By: Claude Opus 5.5 --- scripts/edit_secrets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/edit_secrets b/scripts/edit_secrets index 499b45a..0e6605f 100755 --- a/scripts/edit_secrets +++ b/scripts/edit_secrets @@ -40,6 +40,10 @@ fi # GUI editors (code/zed) return instantly unless forced to --wait, and if # $EDITOR is unset no editor exists on the `nix shell` PATH, so bundle one. editor="${VISUAL:-${EDITOR:-}}" +# Zed wherever it's installed, over the shell's $EDITOR. +if command -v zeditor >/dev/null 2>&1; then + editor="zeditor" +fi extra=() case "$editor" in "") editor="nano"; extra=(nixpkgs#nano) ;; # sane default, bundled