Re: [GENERAL] psql command line editor

2009-08-18 Thread Jasen Betts
On 2009-08-17, Bob Gobeille wrote: > I use PSQL to set my editor to vi. This works as expected in psql, \e > brings up vi and I edit away. > > Is there any way to set my psql command line editor to also use vi > (just like I do with "set -o vi" in bash)? > I can't find this in the docs. psql

Re: [GENERAL] psql command line editor

2009-08-17 Thread Bob Gobeille
On Aug 17, 2009, at 1:38 PM, kbarn...@kevinbarnard.net wrote: On Aug 17, 2009, at 1:46 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any way to set my psql command line editor to a

Re: [GENERAL] psql command line editor

2009-08-17 Thread Bob Gobeille
On Aug 17, 2009, at 1:27 PM, Steve Atkins wrote: On Aug 17, 2009, at 12:15 PM, Bob Gobeille wrote: On Aug 17, 2009, at 12:46 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any wa

Re: [GENERAL] psql command line editor

2009-08-17 Thread kbarn...@kevinbarnard.net
On Aug 17, 2009, at 1:46 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any way to set my psql command line editor to also use vi (just like I do with "set -o vi" in bash)? I can't fin

Re: [GENERAL] psql command line editor

2009-08-17 Thread Steve Atkins
On Aug 17, 2009, at 12:15 PM, Bob Gobeille wrote: On Aug 17, 2009, at 12:46 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any way to set my psql command line editor to also use vi

Re: [GENERAL] psql command line editor

2009-08-17 Thread Bob Gobeille
On Aug 17, 2009, at 1:18 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I have in my .inputrc this line: set editing-move vi and it works like a charm. I tried this and can't get it to work. 1) I tried putting that in my .bashrc script and sourcing the file (and also logging in aga

Re: [GENERAL] psql command line editor

2009-08-17 Thread Alvaro Herrera
Bob Gobeille wrote: > >I have in my .inputrc this line: > > > > set editing-move vi > > > >and it works like a charm. > > I tried this and can't get it to work. > 1) I tried putting that in my .bashrc script and sourcing the file > (and also logging in again) > 2) I did the set on the command

Re: [GENERAL] psql command line editor

2009-08-17 Thread Bob Gobeille
On Aug 17, 2009, at 12:46 PM, Alvaro Herrera wrote: Bob Gobeille wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any way to set my psql command line editor to also use vi (just like I do with "set -o vi" in bash)? I can't fi

Re: [GENERAL] psql command line editor

2009-08-17 Thread Alvaro Herrera
Bob Gobeille wrote: > I use PSQL to set my editor to vi. This works as expected in psql, > \e brings up vi and I edit away. > > Is there any way to set my psql command line editor to also use vi > (just like I do with "set -o vi" in bash)? > I can't find this in the docs. I have in my .inputrc t

Re: [GENERAL] psql command line editor

2009-08-17 Thread Bob Gobeille
On Aug 17, 2009, at 11:30 AM, Gobeille, Robert wrote: I use PSQL to set my editor to vi. This works as expected in psql, \e brings up vi and I edit away. Is there any way to set my psql command line editor to also use vi (just like I do with "set -o vi" in bash)? I can't find this in the docs