Quick dirty Automation to be used in CLI that ejects all external drives.
Working on 10.15.7 and later
- Clone the repo and cd into it
- Echo the path to your $PATH
export PATH=`pwd`:$PATH
To add the path on every session, add the following to your .bashrc
replacing PATH_TO_DIRECTORY with the path to the directory:
export PATH=$PATH_TO_DIRECTORY:$PATH
- Eject your disks, its EASY :
ejectall
If you like this automation consider dropping a ⭐