- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How set default emacs in ksh
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:11 PM
04-20-2006 02:11 PM
I try to use "ksh -o emacs".
But I can not use keyboard UP and DOWN button to find the command history. Does anybody can tell me how to let ksh can search command by UP and DOWN button.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 03:58 PM
04-20-2006 03:58 PM
Re: How set default emacs in ksh
http://www.informatik.uni-frankfurt.de/doc/man/hpux/ksh.1.html
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 04:07 PM
04-20-2006 04:07 PM
Re: How set default emacs in ksh
But the the customer has the problem about "ksh -o emacs"? I also can not use "UP" "DOWN" to find previous command by emacs in hpux. Do anyone know how to fix this problem? Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 06:37 PM
04-20-2006 06:37 PM
Re: How set default emacs in ksh
Apart from issuing "ksh -o emacs" have you enabled history feature in your profile.
Please make sure these variables are defined in your .profile file in home directory.. "HISTFILE" and "HISTSIZE".
#echo $HISTFILE
#echo $HISTSIZE
If not defined please consider defining one as follows in your .profile
HISTFILE=~/.sh_history
HISTSIZE=200
export HISTFILE
export HISTSIZE
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:49 PM
04-20-2006 07:49 PM
Re: How set default emacs in ksh
I try to
HISTFILE=~/.sh_history
HISTSIZE=200
export HISTFILE
export HISTSIZE
But ksh -o emacs, still can't use "UP" and "DOWN" button to find the previous command.
Any comments please advise, thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2006 12:00 AM
04-21-2006 12:00 AM
SolutionI think you'll have to use
^p (Ctrl p, previous) for UP and
^n (Ctrl n, next) for DOWN
navigation - just the same keys as in emacs.
mfG Peter