Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

enable command line editing

SOLVED
Go to solution
Nguyen Anh Tien
Honored Contributor

enable command line editing

Hi all.
I am newbie on Tru64. One stupid question please.
Can Any one tell me how to enable command line editing ?
HP is simple
4 REPLIES
Hein van den Heuvel
Honored Contributor
Solution

Re: enable command line editing


Depends on the shell. Documented in the manpages. For example 'man ksh'.
Personally I use ksh and have entriies in my ~/.profile file for:

HISTSIZE=1000
set -o emacs

Others prefer vi.
I like to 'simply' use the arrow keys to navigate which the emacs setting offers me.

hth,
Hein.

Nguyen Anh Tien
Honored Contributor

Re: enable command line editing

I typed at command line
# set -o vi
-o: bad option(s)
# set -o emacs
-o: bad option(s)
#
It means that set has no -o option, do it?
HP is simple
Venkatesh BL
Honored Contributor

Re: enable command line editing

You need to be in the shell before using the 'set -o' option. In case of 'ksh', do this:

# ksh
# set -o vi

(or)

# ksh -o vi
Nguyen Anh Tien
Honored Contributor

Re: enable command line editing

thank all
HP is simple