1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 01:40:48 +03:00
This commit is contained in:
FG 2024-11-21 16:57:12 +00:00 committed by GitHub
commit b9ae66acc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,16 +209,18 @@ has several useful features compared to querying the service directly with `curl
To install the client:
```bash
SHA256_CHECKSUM="d3135e42b800ff2e7aac44d4dfe500f0f4e2c7eb00a1c2191b0dc8b28431f155"
PATH_DIR="$HOME/bin" # or another directory on your $PATH
mkdir -p "$PATH_DIR"
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"
```
or to install it globally (for all users):
```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`