siddharthkp / historie

A searchable history cli
MIT License
60 stars 2 forks source link

Using SSH from historie #9

Open btok opened 7 years ago

btok commented 7 years ago

Hi, First of all, Great work on this feature ! I am trying to run a SSH command from the historie however it just hangs there after i select the command - Any idea why ? Is it a bug or am i missing something ? Attaching a screenshot...

Thanks historie

siddharthkp commented 7 years ago

Ah, that's a bug that comes from the way historie is implemented.

It runs the command in a child process and then prints the output back. So anything that expects addition input would not work as it is hidden behind.

This is true for ssh, sudo commands that require a password, etc.

I don't know the right way to fix this. npx does really well.

The code is here, if you're curious.