I know that you can define the preferred editor by setting the EDITOR
environment variable.
My question is if there is a similar solution for setting the preferred merge or diff tool.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityAs far as I know, there isn't any universal way; it depends on which version control system you are using, e.g.:
.hgrc
.merge.tool
configuration, as told in a comment./etc/subversion/config
.
merge.tool
configuration assignment.