Created
January 9, 2019 18:29
-
-
Save mzipay/bb3e87a2fce6b743a4e0b024142cd0ea to your computer and use it in GitHub Desktop.
sqlplus with readline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sqlplus { | |
socat READLINE,history=$HOME/.sqlplus_history EXEC:"$ORACLE_HOME/bin/sqlplus $(echo $@ | sed 's/\([\:]\)/\\\1/g')",pty,setsid,ctty | |
status=$? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment