4 ms·
Using \e within the psql shell will drop you right into your $EDITOR, which is likely vim. You can edit commands in there directly and they will be evaluated wh
by pselbert 13y ago
Using \e within the psql shell will drop you right into your $EDITOR, which is likely vim. You can edit commands in there directly and they will be evaluated when you :wq out. The next time you type \e it will load the previous command back into the editor
My only issue with this workflow is when I want to yank the command out to the clipboard. For some reason it doesn't seem to respect clipboard settings on OS X.