System Administration
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