I'm using
zsh
on ubuntu and I created a symlink for bat
as so:
ln -s /usr/bin/batcat /home/user_name/.local/bin/bat
hitting ls -l
from ~/.local/bin
shows:
lrwxrwxrwx 1 tux tux 15 May 19 13:47 bat -> /usr/bin/batcat
Now from any directory(even in ~/.local/bin
),
If I run bat
, I get command not found: bat
. Also running ~/.local/bin
doesn't work. However, running ./bat
(from ~/.local/bin
) does work. Running batcat
also works.
echo $PATH
shows that ~/.local/bin
is in the path
What could be going wrong here? no symlink works, bat
is just an example
P.S. In bash, things are working as expected
Asked by Haris Muzaffar
(249 rep)
May 19, 2021, 08:32 AM
Last activity: May 20, 2021, 05:44 AM
Last activity: May 20, 2021, 05:44 AM