docs: Add -trimpath to installation instructions (#2529)

This commit is contained in:
Joe Lim authored and GitHub committed 2026-04-15 12:40:15 +10:00
1 parent 58c844786f
commit d90dce7e4d
1 file changed
+3 -3
+3 -3
View File
@@ -42,21 +42,21 @@ Building from the source requires [Go](https://go.dev/).
On Unix:
```bash
env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/gokcehan/lf@latest
env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest
```
On Windows `cmd`:
```cmd
set CGO_ENABLED=0
go install -ldflags="-s -w" github.com/gokcehan/lf@latest
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest
```
On Windows `PowerShell`:
```powershell
$env:CGO_ENABLED = '0'
go install -ldflags="-s -w" github.com/gokcehan/lf@latest
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest
```
## Usage