Skip to content
ocx
install

Installer output

On a developer machine, run the one-liner for your shell from Install OCX. This is the whole output of the POSIX installer, recorded on a fresh x86-64 Linux user. The installer prints the first six lines and the closing message. ocx self setup prints what lies between: its progress and a table of what it changed. The version is the release that was current when the recording was made.

Install the latest ocx
Terminal window
curl -fsSL https://setup.ocx.sh/sh | sh
ocx-install: Detected platform: x86_64-unknown-linux-gnu
ocx-install: Resolving latest version...
ocx-install: Installing ocx v0.6.5...
ocx-install: Downloading ocx-x86_64-unknown-linux-gnu.tar.gz...
ocx-install: Checksum verified.
ocx-install: Running ocx self setup...
pulling count=1
Downloading layer sha256:f45ad2e46655 to /home/runner/.ocx/temp/28a37a3033a5
Setup re-source your shell profile (or open a new shell) to activate ocx
Setup log out and back in for the session PATH to reach programs started outside a shell
Field Value
Status completed
Bootstrap pulled 0.6.5
Digest sha256:853a43059f4205e84dc2f9bb62210cbd93159268e1d8fe3a54837332e4936250
Shims /home/runner/.ocx/env.sh
/home/runner/.ocx/env.fish
/home/runner/.ocx/env.ps1
/home/runner/.ocx/env.nu
/home/runner/.ocx/env.elv
Profiles /home/runner/.profile (completed)
/home/runner/.bashrc (completed)
/home/runner/.zprofile (completed)
/home/runner/.zshrc (completed)
/home/runner/.config/powershell/profile.ps1 (completed)
Session PATH /home/runner/.config/environment.d/ocx.conf (written)
ocx 0.6.5 installed successfully!
Restart your shell, then verify with:
ocx about
To uninstall, remove the OCX home directory:
rm -rf /home/runner/.ocx

Run the same command again, and the installer exits 0 with the version it finds when it would install that same version. OCX_INSTALL_FORCE reinstalls anyway. An unpinned rerun after a release upgrades to that release.

Each recording below runs the one-liner for that shell on a fresh Linux user and plays back what it printed. The PowerShell recording ran PowerShell 7 on Linux, so it downloads the Linux archive. On Windows the installer downloads a .zip for x86_64-pc-windows-gnullvm (releases before the rename publish x86_64-pc-windows-msvc, which it falls back to).

Install OCX in a POSIX shell

The Nushell and Elvish recordings use the form for a POSIX shell, as Install OCX shows. Each installer ends with a closing message.