joh / when-changed

Execute a command when a file is changed
Other
1.22k stars 107 forks source link

command not found #86

Closed p17kots closed 2 years ago

p17kots commented 3 years ago

Hi, Congrats for your work. I m facing that error when i m running the command. I'm using Ubuntu 20.10 and i ve installed the dependencies using pip3. Do you know by any chance what causes this? Thank you!

mazunki commented 3 years ago

If the command is not found, it's because your shell doesn't find it anywhere.

Have you added your pip library to $PATH?

On my system, pip installs stuff to ~/.local/bin/ which is part of my $PATH, and since the binary program when-changed is found there, it knows where to find it.

You can add a path directory to the current shell (and children) with export PATH=$PATH:the_absolute_path_of_the_directory_with_the_program. It's conventional to add something like this to your .bashrc file, so it does it automatically on each new terminal.