Skip to content

Instantly share code, notes, and snippets.

@mzipay
Created January 9, 2019 18:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzipay/bb3e87a2fce6b743a4e0b024142cd0ea to your computer and use it in GitHub Desktop.
Save mzipay/bb3e87a2fce6b743a4e0b024142cd0ea to your computer and use it in GitHub Desktop.
sqlplus with readline
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