Start lein repl with commands from the terminal Start lein repl with commands from the terminal shell shell

Start lein repl with commands from the terminal


(echo "(println :hello)"; cat <&0) | lein repl

This prints the command - letting the REPL process it -, then "switches back" to stdin for input. You might have to interrupt the cat call after leaving the REPL, though.