Fallback to nano if EDITOR isn't set (#764)

Fixes #759
This commit is contained in:
Denis Isidoro 2022-07-28 20:13:23 -03:00 committed by GitHub
parent ebb02e28ec
commit 81cd721b76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ navi repo browse
# Edit main local cheatsheets
f="$(navi info cheats-path)/main.cheat"
[ -f "$f" ] || navi info cheats-example > "$f"
$EDITOR "$f"
${EDITOR:-nano} "$f"
% config
@ -17,7 +17,7 @@ $EDITOR "$f"
# Edit config file
f="$(navi info config-path)"
[ -f "$f" ] || navi info config-example > "$f"
$EDITOR "$f"
${EDITOR:-nano} "$f"
% 3rd-party