Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Last active December 3, 2018 10:50
Show Gist options
  • Save VirtuBox/af97c7076173b9b145b09882e721a9d7 to your computer and use it in GitHub Desktop.
Save VirtuBox/af97c7076173b9b145b09882e721a9d7 to your computer and use it in GitHub Desktop.
install cheat.sh

Install cht.sh

bash <(wget -qO - https://gist.githubusercontent.com/VirtuBox/af97c7076173b9b145b09882e721a9d7/raw/ccb006f36cf9101025c79696610ba51db3328db6/cheat-install.sh )
#!/bin/bash
curl https://cht.sh/:cht.sh > /usr/bin/cht.sh || wget -O /usr/bin/cht.sh https://cht.sh/:cht.sh
chmod +x /usr/bin/cht.sh
CHECK_CHEAT=$(grep "cht.sh" $HOME/.bashrc)
if [ -z "$CHECK_CHEAT" ]; then
echo "alias cheat='cht.sh'" >> $HOME/.bashrc
source $HOME/.bashrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment