Sep 7, 2018 · 1 min read
Alias may be better to run jshell . Avoids maintaining an extra shell script.
echo ‘alias jshell=”docker run -it openjdk:9-jdk /bin/jshell”’ >> ~/.zshrc && source ~/.zshrc
Instead of ~/.zshrc any bash profile file can be used.