I have created a Bash script that simply does
In Mavericks and older versions of OSX I simply made a symlink to the script and put it in the
/usr/bin folder (
ln -s ll.sh /usr/bin/ll) and I could then execute the script using
ll from any folder.
Since upgrading to El Capitan I am unable to load this script. I have disabled SIP so that I am able to create the symlink and the script is definitely executable. The location (
/usr/bin) is definitely in the $PATH and I have even tried adding a path to the script into the $PATH too.
Nothing seems to work, all I am getting is
-bash: ll: command not found.
I have restarted the terminal after each update to the $PATH and I have tried
source ~/.bash_profile but neither are making any difference.
Edit: I also tried adding the current directory of the scripts to the $PATH and that was also giving the same error. In the end I have aliased all my scripts so that they will run.