Added install.sh

This commit is contained in:
Caleb Bassi 2018-02-19 00:22:14 -08:00
parent f7cf8f93c1
commit 8ec0811bac
2 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,9 @@ Go code compiles to a single executable so you just need to somehow get that int
Either manually download the latest release for your OS from the releases tab and move it into `/bin`, or run this command to do it for you:
sudo ...
```
sudo curl -L ...
```
If you install this way, starting gotop with the `-u` flag or pressing `u` in gotop will check to see if there is a newer version available and automatically update if so.

6
install.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
VERSION=v1.0
curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop > /usr/bin/gotop
chmod +x /usr/bin/gotop