I'm writing a small script to manage my installed JDK
on a linux
machine, say for example that the name of the script/function is usejdk
.
I come with to ways :
usejdk
is abash
function in shell script sourced the file in.bashrc
or.bash_profile
.use
usejdk
as the name of the shell script and add it to the~/bin
directory which is thePATH
.
What is the idiomatic way to deploy a shell script on a unix
machine between the two ?