Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> suggest patterns in the same codebase that you're working

Sometimes, with variable results. I think I've only observed it guess patterns from the current directory

> Does copilot work for shell scripts?

Yes, it gave me this earlier today while editing my .zshrc:

  # kill a process on a given port
  killport() {
    lsof -i :$1 | awk 'NR!=1 {print $2}' | xargs kill
  }


Can't wait for someone to integrate this into a shell. Does anyone know if such a project exists?


Probably not exactly what you're looking for, but Warp (a new terminal client) has "AI Code Search" built in that's powered by GPT-3. Quite useful for someone like me who tends to avoid the terminal when I can.

https://www.warp.dev

https://docs.warp.dev/features/ai-command-search


There's this cool blog on them testing it out against popular git commands:

https://www.warp.dev/blog/replace-git-cheat-sheet-ai-command...


them as in that’s you :)


Integrating into a shell, for immediate execution, seems very very dangerous. You still need to carefully test/scrutinize everything that comes from copilot.


"Copilot, how do I fork in a shell?"

  :() { :|: } :&
Thanks copil[user disconnected].


lsof supports machine-readable mode:

  lsof -i ":$1" -Fp | tr -d p




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: