installing star aligner in macOS code example
Example: installing star aligner in macOS
STAR-master/bin/MacOSX_x86_64
export PATH=$PATH:/path/to/STAR-master/bin/MacOSX_x86_64
like
export PATH=$PATH:/Users/rashidminhas/STAR-2.7.6a/bin/MacOSX_x86_64
It will work perfectly