Skip to content

Instantly share code, notes, and snippets.

@changchichung
Created July 10, 2023 07:21
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 changchichung/5f28c96743a7e91e89457a875a50c88f to your computer and use it in GitHub Desktop.
Save changchichung/5f28c96743a7e91e89457a875a50c88f to your computer and use it in GitHub Desktop.
add bat command to ubuntu

you will not be able to run command bat after you install bat package from apt. were is how to fix it.

using update-alternative command

2023-07-10 11:06:50 [chchang@us ~ ]$ sudo update-alternatives --install
update-alternatives: --install needs <link> <name> <path> <priority>

Use 'update-alternatives --help' for program usage information.
2023-07-10 11:07:39 [chchang@us ~ ]$ 
sudo update-alternatives --install /usr/local/bin/bat bat /usr/bin/batcat 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment