This is a very useful little utility that gives you readline editing for any program with a prompt, and it works perfectly for native windows programs as well (e.g. rlwrap powershell works fine.) Can be a nice alternative to winpty for some things. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
20 lines
397 B
Bash
20 lines
397 B
Bash
#!/bin/bash
|
|
|
|
post_install() {
|
|
cat <<EOF
|
|
Message for rlwrap $1:
|
|
|
|
Here is a nice configuration example for wrapping a command with rlwrap, the
|
|
command in this example being sqlplus, this would go into your ~/.bashrc:
|
|
|
|
alias sqlplus="rlwrap -i -f ~/.sqlplus_history -H ~/.sqlplus_history -s 30000 sqlplus --"
|
|
touch ~/.sqlplus_history
|
|
|
|
Enjoy!
|
|
EOF
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|