|bash history command edit question
|Page 1 of 1|
|Author:||wdelv [ Fri Aug 08, 2008 5:44 pm ]|
|Post subject:||bash history command edit question|
Although I am new to Ubuntu/bash/Linux I have been using UNIX for about 20 years; the first seven with csh and the rest with ksh.
I have been trying to edit some of the commands in my history but can only seem to get the arrow, backspace and delete keys to work.
I am used to vi-type commands from my ksh days but can't seem to get it to function.
I've tried setting environment variables, EDITOR and FCEDIT, to different combinations of /usr/bin/vi and /bin/ed but can't seem to get into the command mode to move around the text of the recalled command.
I can get the command to come up in a vi session for editing and the command mode works well there.
But I wanted to do this on a single-line mode (just like I used to get when typing ESC-K in the ksh).
I am using Ubuntu's gnome terminal with bash, of course.
What am I missing?
|Author:||wdelv [ Sat Aug 09, 2008 11:37 am ]|
I resolved the issue!
I needed to execute set -o vi in my shell.
I can do this in my .profile.
|Page 1 of 1||All times are UTC - 6 hours|
|© 2000, 2002, 2005, 2007 phpBB Group • http://www.phpbb.com|