-
Notifications
You must be signed in to change notification settings - Fork 48
Installation
Ibrahim Serdar Acikgoz edited this page Dec 24, 2018
·
9 revisions
Download the latest binary from Release Page then; decompress the file and copy the executable somewhere in your $PATH
for instance :
curl -OL https://github.com/isacikgoz/tldr/releases/download/v.0.2.1/tldr_0.2.1_darwin_amd64.tar.gz
tar -xzf tldr_0.2.1_darwin_amd64.tar.gz
wget https://github.com/isacikgoz/tldr/releases/download/v.0.2.1/tldr_0.2.1_linux_amd64.tar.gz
tar xzf tldr_0.2.1_linux_amd64.tar.gz
chmod +x tldr
sudo mv ./tldr /usr/local/bin/tldr
Source build requires golang compiler and minimum golang 1.10 is recommended.
- If you don't have golang installed refer to golang.org.
- You should have $GOPATH env variable set and your $PATH should include $GOPATH/bin to run app from anywhere.
To install run the following command;
go get -u github.com/isacikgoz/tldr
p.s. I prefer using gopath like this in my zshrc or bashrc;
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
Run tldr
from anywhere you want.