Skip to content

Error when running pet search: "sh: 1: fzf: not found" #333

Answered by RamiAwar
anthony2261 asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed - we should document this better to prevent confusion.

As for the search command, this is actually expected behavior. It seems a bit weird at first - why doesn't Pet just print the command and set the shell cursor to be at the end of it, allowing the user to execute?

That goes back to how shells and programs work. pet search is a command being run. When commands end, the shell moves to a state of waiting for the next command.

The only way of 'controlling' the cursor would be by spawning a subshell, and then printing to stdout inside that. But sub-shells are a spicy can of worms that I'd prefer not to open in this case.

Also, we recommend installing the shell profile shortcuts as th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anthony2261
Comment options

Answer selected by RamiAwar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants