Command Line Tools on macOS
macOS only
"I would like to use Beyond Compare with my Version Control System." or "I tried to use the Beyond Compare menu to Install Command Line Tools but it failed."
Beyond Compare requires an additional step after the main install in order to be used from the command line or with version control. Boot the application, and then go to Beyond Compare > Install Command Line Tools. This will require your password, and will then create two shortcuts to use:
/usr/local/bin/bcomp
(to launch the comparison and wait for it to complete)/usr/local/bin/bcompare
(to launch the comparison and return immediately)
Failed to install command line tools
If this option has failed (usually due to a permissions issue), these Symbolic Links can be manually created. Go to the Terminal and run:
sudo
(may be required)ln -s /Applications/Beyond\ Compare.app/Contents/MacOS/bcomp /usr/local/bin/bcompare
ln -s /Applications/Beyond\ Compare.app/Contents/MacOS/bcomp /usr/local/bin/bcomp
Install command line tools without sudo/root access
Go to the Terminal and run:mkdir ~/bin
nano ~/.zshrc
(macOS Catalina) ornano ~/.bash_profile
(macOS Mohave or older)- Add the line
export PATH=$HOME/bin:$PATH
ln -s /Applications/Beyond\ Compare.app/Contents/MacOS/bcomp ~/bin/bcompare
ln -s /Applications/Beyond\ Compare.app/Contents/MacOS/bcomp ~/bin/bcomp