stiles
05-10-2001, 06:23 PM
OK I'm new to solaris and have discovered some Solaris features that are not obvious (unless you have used Solaris or the Korn shell). Enjoy.
There is a korn shell history which can be used two ways (that I know of). One way is to use the history command. The other much cooler way is to set up vi as your command line editor and press <Esc> to enter vi command mode. Now your h j k l keys move you around the command line (j and k move you up and down the command line history). Yes now you can edit your commands with vi.
to make vi your CL editor add this to your .profile in your home dir:
EDITOR=/usr/bin/vi ; export EDITOR
Now that we have vi working at the command line you can do filename compleation too (this is only filenames not commands). Type out your command and part of the filename then press <Esc> followed by <\>.
There is a korn shell history which can be used two ways (that I know of). One way is to use the history command. The other much cooler way is to set up vi as your command line editor and press <Esc> to enter vi command mode. Now your h j k l keys move you around the command line (j and k move you up and down the command line history). Yes now you can edit your commands with vi.
to make vi your CL editor add this to your .profile in your home dir:
EDITOR=/usr/bin/vi ; export EDITOR
Now that we have vi working at the command line you can do filename compleation too (this is only filenames not commands). Type out your command and part of the filename then press <Esc> followed by <\>.