Directories
Follows uv tool conventions.
| Purpose | Unix | Windows |
|---|---|---|
| Binaries | ~/.local/bin/ |
%USERPROFILE%\.local\bin\ |
| Tool storage | ~/.local/share/ghr/tools/ |
%APPDATA%\ghr\data\tools\ |
| Cache | ~/.cache/ghr/ |
%LOCALAPPDATA%\ghr\cache\ |
Override with GHR_BIN_DIR, GHR_TOOL_DIR, GHR_CACHE_DIR.
Use ghr path bin, ghr path tools, or ghr path cache to print the current
location for each directory.
The bin directory is frequently not on PATH by default, especially on Windows. Run ghr path add once to fix that:
- Windows: updates
HKCU\Environment\Path(user PATH) and broadcastsWM_SETTINGCHANGEso new terminals pick up the change. If%APPDATA%\nushell\exists, also updates%APPDATA%\nushell\env.nu. - macOS / Linux: appends a guarded block to your shell rc files (bash:
.bash_profile/.bashrc/.profile; zsh:.zprofile; nushell:~/.config/nushell/env.nu). The block is idempotent and is replaced in place on re-runs.
ghr path add --dry-run prints the changes it would make without writing.