I created basic script in Windows.
#!/bin/bash
echo Hello
I am using Cmder, ConEmu derivative. I tried to change the priviliges with chmod, bu
If you want to be able to run the script by simply typing its name, a workaround is to create an alias and put it into your .bashrc
such as:
alias scriptName="bash /pathToTheScript/yourScript.sh"
Or you can source a script inside your .bashrc
and make it available through a function:
source /pathToTheScript/yourScript.sh
where the script is:
#!/bin/bash
function your_function()
{
yourCode
}