Skip to content

Commit

Permalink
Add editor as first option in __set_editor().
Browse files Browse the repository at this point in the history
Support `update-alternatives` / `/etc/alternatives` by checking for
`editor` as the first option in `__set_editor()`.

refs gh-340
  • Loading branch information
xwmx committed Oct 28, 2024
1 parent 9aac794 commit b055b9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nb
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ NB_EDITOR="${NB_EDITOR:-${EDITOR:-${VISUAL:-}}}"

__set_editor() {
local _editors=(
editor
code
subl
hx
Expand Down

0 comments on commit b055b9e

Please sign in to comment.