Posts

Showing posts from December, 2018

psql: A New Edit

Have you ever found yourself in the middle of a long statement in psql and wanted to pull up your favorite editor? Now, you can, using the same shortcut of control-x control-e that you would in bash! Here's how: $EDITOR ~/.inputrc Now add the following lines: $if psql     "\C-x\C-e": "\C-e\\e\C-m" $endif ...save the file, and you're good to go.