Skip to content

Instantly share code, notes, and snippets.

@danielTobon43
Created February 21, 2022 15:52
Show Gist options
  • Save danielTobon43/efe2ba202f103dda222d44322b35fa5f to your computer and use it in GitHub Desktop.
Save danielTobon43/efe2ba202f103dda222d44322b35fa5f to your computer and use it in GitHub Desktop.
Installing bat in Ubuntu 20.04

bat command ubuntu

sudo apt-get install bat

Important:

If you install bat this way, please note that the executable may be installed as batcat instead of bat (due to a name clash with another package). You can set up a bat -> batcat symlink or alias to prevent any issues that may come up because of this and to be consistent with other distributions:

mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat

Reference

https://github.com/sharkdp/bat#on-ubuntu-using-apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment