C4K3 / nbted

Command-line NBT editor
Creative Commons Zero v1.0 Universal
100 stars 8 forks source link

Check if VISUAL is set before checking EDITOR #7

Closed rjc closed 2 years ago

rjc commented 2 years ago

VISUAL, aka screen-oriented should be checked before EDITOR, aka line-oriented, editor - these are usually vi(1) and ed(1) respectively.

rjc commented 2 years ago

BTW, neither is set, please consider usign vi(1) :^)

In C and in Shell, this is most commonly expressed as:

${VISUAL:-${EDITOR:-vi}}
C4K3 commented 2 years ago

Thanks.