shell script running path by JIMz November 13th, 2024 1 min read shell script zsh SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) source post from stackoverflow