Created
October 6, 2022 17:24
-
-
Save crazyoptimist/56c2df026d549ee10c32b2daaca80ac4 to your computer and use it in GitHub Desktop.
bat is written in rust, is an excellent alternative to cat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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