summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-19 08:30:30 +1000
committerGitHub <noreply@github.com>2022-08-19 08:30:30 +1000
commitf6d6b5dec0432ffa953611700ab9b1ff0089f948 (patch)
treee2ba9512f61ec303c4ee5ac1846e15ab624ba1dc /README.md
parentce98279896a8189fb46939ecaf67847efd8a1bf8 (diff)
parent67d6b691156d352e3c75752eaeffdb5701843a52 (diff)
Merge pull request #2126 from yofreee/master
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index 31525e1b6..d8e0785fb 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,7 @@ If you're a mere mortal like me and you're tired of hearing how powerful git is
- [Arch Linux](#arch-linux)
- [Fedora and RHEL](#fedora-and-rhel)
- [Solus Linux](#solus-linux)
+ - [Ubuntu](#ubuntu)
- [Funtoo Linux](#funtoo-linux)
- [FreeBSD](#freebsd)
- [Conda](#conda)
@@ -146,6 +147,26 @@ sudo dnf install lazygit
sudo eopkg install lazygit
```
+### Ubuntu
+
+```sh
+LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-35.]+')
+```
+
+```sh
+curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
+```
+
+```sh
+sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
+```
+
+Verify the correct installation of lazygit:
+
+```sh
+lazygit --version
+```
+
### Funtoo Linux
Funtoo Linux has an autogenerated lazygit package in [dev-kit](https://github.com/funtoo/dev-kit/tree/1.4-release/dev-vcs/lazygit):