simonw / llm-cmd

Use LLM to generate and execute commands in your shell
Apache License 2.0
107 stars 11 forks source link

Not working on MacOS with OMZSH shell #11

Closed kcrommett closed 4 days ago

kcrommett commented 5 months ago

llm works fine, but llm cmd will not return any responses on my M3 MacOS environment.

I am running OMZSH with a fairly custom shell, but I run the same shell config on my ubuntu boxes and llm cmd works fine there. When I run an 'llm cmd' command, nothing is returned at all, no errors. But it does hang at an interactive shell- i.e., if I type a command and enter it at that 'hung' shell, it doesn't just go into the shell buffer, it actually tries to execute. So it seems like it's not an issue running the command itself, it's returning the response to the shell input is where it gets stuck.

That being said, these requests are also not show in 'llm logs'. I am not sure exactly what that means since it could possible be written to only log after a response is returned.

nkkko commented 5 months ago

I have the same exact issue on macos with oh-my-zsh, and not showing in llm logs. "llm" runs fine on itself. Don't know how to debug it properly more than this?

nkkko commented 5 months ago

Created PR here #12

nicole-brewer commented 2 months ago

I macos/zsh as well. As suggested in #12, I used

llm uninstall llm-cmd
llm install https://github.com/nkkko/llm-cmd/archive/b5ff9c2a970720d57ecd3622bd86d2d99591838b.zip

to temporarily fix this issue. Much appreciated @nkkko! This plugin is the number one reason I'm using llm in the first place. So helpful

creativecoder commented 2 months ago

I also experienced this issue after installing llm-cmd on a macOS machine. The workaround above solved it for now.

But it would be great to get #12 merged so the workaround isn't needed.

levity commented 1 month ago

I macos/zsh as well. As suggested in #12, I used

llm uninstall llm-cmd
llm install https://github.com/nkkko/llm-cmd/archive/b5ff9c2a970720d57ecd3622bd86d2d99591838b.zip

to temporarily fix this issue. Much appreciated @nkkko! This plugin is the number one reason I'm using llm in the first place. So helpful

This also fixes hanging on fish shell.

jpsala commented 1 month ago

llm install https://github.com/nkkko/llm-cmd/archive/b5ff9c2a970720d57ecd3622bd86d2d99591838b.zip It's working now for me, using oh my posh on win11 Thank you!

britt-mongo commented 4 days ago

I encountered the same issue. The workaround worked though. @simonw please accept the pull request above (or fix it)

simonw commented 4 days ago

Fixed by this PR, about to release it: