Choose the installation method that suits you best. Using a package manager is recommended for easy installation and automatic updates.
Install via Homebrew (Recommended)
1. Add the tap (one-time setup):
2. Install getctx:
Updating getctx in the future:
Multiple installation options available
This method uses your system's native package manager and is recommended for Debian-based distributions.
If you already use Homebrew on Linux (Linuxbrew), follow the same instructions as for macOS:
Install via Scoop package manager
1. Add the bucket (one-time setup):
Open PowerShell and run:
2. Install getctx:
Updating getctx in the future:
For Go developers
If you have Go installed, you can install getctx directly:
The getctx binary will be placed in your $GOPATH/bin directory.
Download pre-compiled binaries
You can download a pre-compiled binary for your operating system directly from GitHub:
getctx (or getctx.exe) executable to a directory in your system's PATH (e.g., /usr/local/bin on Linux)This launches the interactive TUI in your current directory.
Navigate with arrow keys, press Space to select files, or CTRL+A to select all.
Press q to save your selections and generate the context file.
Your aggregated context is saved to context.txt by default.
-o <filename>Specify custom output file--debugEnable debug logging to debug.logLearn about all the features and keyboard shortcuts in the documentation.
Read Documentation