-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bat doesn't work when installed from apt on Ubuntu #1420
Comments
It works when I install it from source. |
https://github.com/sharkdp/bat#on-ubuntu-using-apt
mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat |
That was my problem! Sorry for the issue. |
@marimeireles Do you think we could improve the documentation to prevent this confusion in the future? Maybe we can highlight or move that part in the documentation to make it more visible? |
Oh, no, it was my fault. I was super inattentive like twice. |
It did happen to many others as well. I added "Important:" in the README 😄 |
I ran these commands but I am still not able to use 'bat'. Only batcat works. Any help will be much appreciated, thanks ! |
You could
|
Thanks! |
I like to put it in sudo ln -s /usr/bin/batcat /usr/local/bin/bat
|
Why is this issue closed? - The problem is not solved. Only a workaround is presented here. I installed bat via 'apt'. If I then call 'man bat' the documentation clearly states, that the command is 'bat' not 'batcat'! I'm very confused by that. The solution works, but obviously has to be done by every user. Why isn't this done automatically on install? (Does this have to do with name collissions?) |
This is not something that we control. Please read the documentation here: https://github.com/sharkdp/bat#on-ubuntu-using-apt |
For me (using zsh with oh-my-zsh @ WSL2) it worked when I used
instead of
also I have prepended by adding |
What version of
bat
are you using?The one available on
apt
.Describe the bug you encountered:
When I
sudo apt install bat
the installation works as expected, but when Ibat
I get:The text was updated successfully, but these errors were encountered: