debops / ansible-console

Configure system console and terminal-related options
GNU General Public License v3.0
13 stars 10 forks source link

Overwrite the default editor? #46

Closed jankatins closed 6 years ago

jankatins commented 6 years ago

I've both vim and nano installed but want nano to be the default editor. I tried to do this in a var file:

console_preferred_editors:
  - '/bin/nano'

But it seems this has not the desired effect that this is put in the first place of the list. Is there any way to set the default editor apart from removing the earlier editors in the default list? If not: would it be possible to add such a way?

drybjed commented 6 years ago

Agreed, the current mechanism is not flexible enough and will be redesigned in the future.

Just a heads up - DebOps development is now done in the DebOps monorepo, you might want to consider switching over to it.

jankatins commented 6 years ago

Thanks for the info, still a bit new how all of debops works together...

Put it here: https://github.com/debops/debops/issues/234