1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-25 06:22:14 +03:00
This commit is contained in:
FG 2022-05-03 07:06:29 +00:00 committed by GitHub
commit 63bb2ac82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,16 +209,18 @@ has several useful features compared to querying the service directly with `curl
To install the client: To install the client:
```bash ```bash
SHA256_CHECKSUM="d3135e42b800ff2e7aac44d4dfe500f0f4e2c7eb00a1c2191b0dc8b28431f155"
PATH_DIR="$HOME/bin" # or another directory on your $PATH PATH_DIR="$HOME/bin" # or another directory on your $PATH
mkdir -p "$PATH_DIR" mkdir -p "$PATH_DIR"
curl https://cht.sh/:cht.sh > "$PATH_DIR/cht.sh" curl https://cht.sh/:cht.sh > "$PATH_DIR/cht.sh"
echo "$SHA256_CHECKSUM $PATH_DIR/cht.sh" | sha256sum --check -
chmod +x "$PATH_DIR/cht.sh" chmod +x "$PATH_DIR/cht.sh"
``` ```
or to install it globally (for all users): or to install it globally (for all users):
```bash ```bash
curl -s https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh && sudo chmod +x /usr/local/bin/cht.sh curl -s https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh 1>/dev/null && echo "d3135e42b800ff2e7aac44d4dfe500f0f4e2c7eb00a1c2191b0dc8b28431f155 /usr/local/bin/cht.sh" | sha256sum --check - && sudo chmod +x /usr/local/bin/cht.sh
``` ```
Note: The package "rlwrap" is a required dependency to run in shell mode. Install this using `sudo apt install rlwrap` Note: The package "rlwrap" is a required dependency to run in shell mode. Install this using `sudo apt install rlwrap`