You can install xshe
with Cargo (Rust's package manager)
or with Homebrew (a package manager for macOS and Linux),
provided you have one of them installed on your system.
If you don't have Cargo or Homebrew, or if you don't want to use either of them,
you can also download the binaries for your system directly from GitHub,
or build xshe
directly.
?> Note: After installing xshe
with Cargo or from a download,
you might have to add the resulting xshe
binary to your PATH
.
(what's that?)
If you have Cargo installed,
use this command to install xshe
from crates.io with Cargo:
cargo install -f xshe
If you have Homebrew installed,
we recommend that you install xshe
with Homebrew instead of Cargo.
Simply run:
brew install superatomic/tap/xshe
Installing xshe
with Homebrew adds autocompletion to any shells that have completion enabled.
If you have Eget installed, just run:
eget superatomic/xshe
This will install a prebuilt binary of xshe
.
?> This method will not add xshe
to your PATH
.
Make sure to add the xshe
binary to your PATH
manually,
or remember to use the full path to the binary whenever you run xshe
.
Instead of using Cargo, you can download the latest release binary that corresponds with your system (or view all releases).
Make sure to add the binary to your PATH
.
First, download the repo:
!> This installs the latest development version of xshe
,
which may be ahead of the current stable release.
If you want the latest stable version instead,
build from the latest git tag or
download the source for the latest version
from the releases page.
To build xshe
from source:
git clone https://github.com/superatomic/xshe
cd xshe
cargo build --release
sudo mv target/release/xshe /usr/local/bin # <-- optional
Make sure to place the generated binary at target/release/xshe
on your PATH
.
In this example, xshe
is installed to /usr/local/bin
, but xshe
can anywhere on your PATH
.