From c2ab0a936230f696ca6525dfb904ef7c040b6d0a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 9 Dec 2025 21:58:21 +0000 Subject: [PATCH] feat(zsh): set cursor as default editor if available --- zsh/cursor.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/cursor.zsh b/zsh/cursor.zsh index 17a9987..f59bbc0 100644 --- a/zsh/cursor.zsh +++ b/zsh/cursor.zsh @@ -8,3 +8,7 @@ if command-exists cursor-agent; then setup-completions cursor-agent "$(command-path cursor-agent)" \ cursor-agent shell-integration zsh fi + +if command-exists cursor; then + export EDITOR="cursor -w" +fi