This is done in the .profile, example:
set -o vi
will allow previous commands with esc k
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.