Instructions on how to install the tig
command on macOS from source.
macOS Command Line Tools need to be installed on your local computer.
To install the Command Line Tools run the following command:
xcode-select --install
To obtain the tig
source code run the following commands:
mkdir -p ~/.src/tig
curl -sL --retry 3 --insecure "https://github.com/jonas/tig/releases/download/tig-2.4.1/tig-2.4.1.tar.gz" | tar xz --no-same-owner --strip-components=1 -C ~/.src/tig/
cd ~/.src/tig
To configure the source to be compiled for macOS run the following command:
./configure \
--prefix=/usr/local \
--mandir=/usr/share/man \
--sysconfdir=/etc
To build the source code run the following command:
make
To install the tool run the following commands:
sudo make install
sudo make install-doc-man
After installing the tool you can remove the downloaded source code using the following commands:
cd ~
rm -rf ~/.src