Bash: move editor env setup to component.