phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
182 stars 23 forks source link

Discover "editor" command #25

Closed szepeviktor closed 5 years ago

szepeviktor commented 6 years ago

Hello!

Please discover the editor command in PATH (e.g. in Debian-based systems)

Debian releases have for example a symlink: /usr/bin/editor

weierophinney commented 5 years ago

This should be in place already.

The edit command uses the value of the environment variable EDITOR, which is generally set at the global level for users, and overridden by individual users when a different binary is desired. On Debian-based systems, this typically uses whatever the alternatives system has setup for /usr/bin/editor (which will be either nano or vi, based on what is installed).

If the EDITOR env variable is not found, the package defaults to vi on unix-based systems and notepad on windows systems; you can override what is used by passing a value via the --editor option, or setting the EDITOR env variable: export EDITOR=/usr/bin/nvm.

szepeviktor commented 5 years ago

Thank you.