keenerd / packer

Bash wrapper for pacman and AUR.
247 stars 48 forks source link

Support $EDITOR #110

Closed flaccid closed 10 years ago

flaccid commented 10 years ago

I set or export EDITOR=/usr/bin/joe (for example). Editing PKGBUILDs is still done in vi. Can we please support EDITOR?

flaccid commented 10 years ago

I'll close this as invalid as it turns out I didn't set EDITOR with root's shell and was using sudo.

It also looks like packer supports sudo/root natively which I wasn't aware of! https://github.com/keenerd/packer/blob/master/packer#L76

So in that case, don't use sudo and simply use EDITOR=foo packer -S bar for a once-off change of $EDITOR.