Skip to content

Commit 6a96397

Browse files
authored
docs: improve installation guide (#6)
1 parent 74620c8 commit 6a96397

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,30 @@ SSH into the selected server
8080

8181
## 📦 Installation
8282

83-
### Option 1: Download Binary from Release
84-
85-
Download the latest release from [GitHub Releases](https://github.com/Adembc/lazyssh/releases):
83+
### Option 1: Homebrew (macOS)
8684

8785
```bash
88-
# Download and extract (example)
89-
curl -JLO https://github.com/Adembc/lazyssh/releases/download/v0.1.0/lazyssh-darwin-arm64.tar.gz
90-
tar -xzf lazyssh-darwin-arm64.tar.gz
86+
brew install Adembc/homebrew-tap/lazyssh
87+
```
9188

92-
# Make it executable and move to PATH
93-
chmod +x lazyssh-darwin-arm64
94-
sudo mv lazyssh-darwin-arm64 /usr/local/bin/lazyssh
89+
### Option 2: Download Binary from Releases
9590

96-
# run it
91+
Download from [GitHub Releases](https://github.com/Adembc/lazyssh/releases). You can use the snippet below to automatically fetch the latest version for your OS/ARCH (Darwin/Linux and amd64/arm64 supported):
92+
93+
```bash
94+
# Detect latest version
95+
LATEST_TAG=$(curl -fsSL https://api.github.com/repos/Adembc/lazyssh/releases/latest | jq -r .tag_name)
96+
# Download the correct binary for your system
97+
curl -LJO "https://github.com/Adembc/lazyssh/releases/download/${LATEST_TAG}/lazyssh_$(uname)_$(uname -m).tar.gz"
98+
# Extract the binary
99+
tar -xzf lazyssh_$(uname)_$(uname -m).tar.gz
100+
# Move to /usr/local/bin or another directory in your PATH
101+
sudo mv lazyssh /usr/local/bin/
102+
# enjoy!
97103
lazyssh
98104
```
99105

100-
### Option 2: Build from Source
101-
102-
Requires **Go 1.22+**
106+
### Option 3: Build from Source
103107

104108
```bash
105109
# Clone the repository
@@ -155,6 +159,9 @@ We love seeing the community make Lazyssh better 🚀
155159
If you find Lazyssh useful, please consider giving the repo a **star** ⭐️ and join [stargazers](https://github.com/adembc/lazyssh/stargazers).
156160

157161
☕ You can also support me by [buying me a coffee](https://www.buymeacoffee.com/adembc) ❤️
162+
<br/>
163+
<a href="https://buymeacoffee.com/adembc" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" width="200"></a>
164+
158165

159166
---
160167

0 commit comments

Comments
 (0)