Skip to content

Commit

Permalink
Fallback to nano if EDITOR isn't set (#764)
Browse files Browse the repository at this point in the history
Fixes #759
  • Loading branch information
denisidoro committed Jul 28, 2022
1 parent ebb02e2 commit 81cd721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/navi.cheat
Expand Up @@ -9,15 +9,15 @@ 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

# Edit config file
f="$(navi info config-path)"
[ -f "$f" ] || navi info config-example > "$f"
$EDITOR "$f"
${EDITOR:-nano} "$f"


% 3rd-party
Expand Down

0 comments on commit 81cd721

Please sign in to comment.