Commit 9ee708e1dd

9ee708e1dd192423b89bf94c2efd5d5739a3661b

parent: 77b283275f

Unregistered key

Anish Kumar Neupane <anishnep51@gmail.com> · 2025-02-25 19:24 UTC
committer: <noreply@github.com>

fix: Use nano if vim unavailable when -e flag set (#47)

Layout: unified · split

internal/curd.go +5 −1
@@ -44,7 +44,11 @@ func EditConfig(configFilePath string) {
4444 editor = "notepad.exe"
4545 }
4646 } else {
47 editor = "vim"
47 if _, err := exec.LookPath("vim"); err == nil {
48 editor = "vim"
49 } else {
50 editor = "nano"
51 }
4852 }
4953 }
5054