Skip to content

Instantly share code, notes, and snippets.

@crazyoptimist
Created October 6, 2022 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyoptimist/56c2df026d549ee10c32b2daaca80ac4 to your computer and use it in GitHub Desktop.
Save crazyoptimist/56c2df026d549ee10c32b2daaca80ac4 to your computer and use it in GitHub Desktop.
bat is written in rust, is an excellent alternative to cat
#!/bin/bash
curl -s https://api.github.com/repos/sharkdp/bat/releases/latest \
| grep -v ".sha256" \
| grep browser_download_url
curl -SL https://github.com/sharkdp/bat/releases/download/v0.22.1/bat_0.22.1_amd64.deb -o bat.deb
sudo dpkg -i bat.deb
rm bat.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment