Skip to content

Instantly share code, notes, and snippets.

@gschizas
Last active March 27, 2018 11:23
Show Gist options
  • Save gschizas/01b909d752e1f716d408edfff257a693 to your computer and use it in GitHub Desktop.
Save gschizas/01b909d752e1f716d408edfff257a693 to your computer and use it in GitHub Desktop.
Build and install tig from sources
#!/usr/bin/env sh
ver=$(curl https://api.github.com/repos/jonas/tig/releases/latest | jq --raw-output '.tag_name[4:]')
sudo apt install -y libncurses5-dev
wget -c https://github.com/jonas/tig/releases/download/tig-$ver/tig-$ver.tar.gz
tar -xzvf tig-$ver.tar.gz
cd tig-$ver/
make prefix=/usr/local/
sudo make install install-doc prefix=/usr/local/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment