diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-19 00:22:14 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-19 02:00:26 -0800 |
commit | 8ec0811bac8817e2e824e344c902919ca03763ff (patch) | |
tree | 993c32ba066d5e1c522b46d3b9f700cb982829fe | |
parent | f7cf8f93c17815b091d01d8023746c29e8e89095 (diff) |
Added install.sh
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | install.sh | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -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. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..7ae6233 --- /dev/null +++ b/install.sh @@ -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 |