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:
Here's how:
$EDITOR ~/.inputrcNow add the following lines:
$if psql...save the file, and you're good to go.
"\C-x\C-e": "\C-e\\e\C-m"
$endif
Comments
Post a Comment