https://github.com/dineshdb/ghx
https://github.com/dineshdb/ghx
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dineshdb/ghx
- Owner: dineshdb
- Created: 2024-08-14T10:28:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T09:16:30.000Z (9 months ago)
- Last Synced: 2025-01-10T03:49:54.684Z (4 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
Install binaries from github releases, on-demand.
## How does it work?
We install a shell script at `$GHX_HOME/alias/ghx`. Then we create symbolic
links to it for all the binaries we want it to handle in `$GHX_HOME/alias/*`.
The `ghx` binary will download the required binary on first run of each command
and save it to `$GHX_HOME/bin/`. On consecutive runs, the downloaded binary
will be used since it has higher priority than aliases in `$PATH`.## Setup
### automatic path setup
```
curl -sSf https://raw.githubusercontent.com/dineshdb/ghx/main/bin/install | bash \
-s -- --setup-path
```### with manual path setup
```
curl -sSf https://raw.githubusercontent.com/dineshdb/ghx/main/bin/install | bash
```### Manual path setup
```
export GHX_HOME=$HOME/.local/ghx# setup $GHX_HOME/alias as fallback. This allows you to override the binaries in other places as well.
# setup $GHX_HOME/bin as overrides. This includes all the downloaded binaries.
export PATH=$GHX_HOME/bin:$PATH:$GHX_HOME/alias
```## License
MIT
```
```