scripting - How to get Command history by cursor key in Linux tclsh -
In TCL Shell (texlsh) you can get command history using the cursor keys (like up arrow key).
I'm running tclsh on Fedora with Linux version 2.6.21.
If you want to access the Readline Library, you can:
$ rlwrap tclsh
Useful options are -c
file name completion, and -f
from a file To add to the completion list:
$ rlwrap-cf my_complete_file tclsh
Because you almost always use rlwrap
Want to add a shell nickname is useful:
alias tclsh = 'rlwrap tclsh'
Comments
Post a Comment