Closed saltydk closed 10 months ago
Might be cool to add a config variable (maybe in adv_settings.yml
?) to customize the editor according to the user's preferences.
Should just use $EDITOR
Sourced from where? It isn't set in my session by default at least.
Sourced from where? It isn't set in my session by default at least.
The shell task sets it as nano
We cannot use anything user based as it needs to work before preinstall.
I can do something like
edit-inventory () {
${EDITOR:-nano} "/srv/git/saltbox/inventories/host_vars/localhost.yml"
}
However, this script runs as root so it is not aware of the user ENV.
Add some type of command that just opens the inventory file with nano for easy access.