Originally posted by: FilipRadil
HI,
On my new job i got a IBM 9111-285 machine with AIX 5.3. I am used to using arrow keys for command history 'search?'. You know, up and down arrows for scrolling through recent commands.
On AIX 5.3 i can't do that. I've done some research and found 2 ways to go around this problem of mine:
1. set -o vi,
2. set -o emacs.
set -o vi using esc to do this is just a pain in the butt, so i tried with set -o emacs and tried putting the following in the .profile and .kschr files.
>>set -o emacs
>>alias __A=$(print -n "\020")
>>alias __B=$(print -n "\016")
>>alias __C=$(print -n "\006")
>>alias __D=$(print -n "\002")
I've also changed this a little by putting echo instead print and so on, everything i could find online. Nothing. I know when I enter 'set -o emacs' in terminal I can use ^P and ^N to navigate through commands, but that doesn't work on startup.
Now, my question is Can this be done AND how can i do it. From time to time I use commands that i find online and close the site after i found them, and need them again after minute or so and have to find them again, which can take a while.
I am not an expert or knowledgeable about AIX so precise answers would help me A TON.
Thank you very much for your help and understanding in advance.
Ty, FR.