Want to add a shell script to Dock?
If you don’t need a Terminal window, you can make any executable file an Application just by moving example.sh to example.sh.app/Contents/MacOS/example.sh. You can place the Application in your dock like any other, and execute it with a click.