from Hacker News

Show HN: Englishell – Plain english shell command executor, powered by ChatGPT

by timz on 8/10/23, 6:18 AM with 2 comments

There are easy and there are hard unix shell commands to remember, nobody knows them all. Why not use ChatGPT to translate plain english instructions into executable shell commands.

Here are a few examples how `englishell` CLI can be used:

$ englishell kill the process that listens to port 8080 -> lsof -i :8080 | awk '{print $2}' | tail -n 1 | xargs kill -9

$ englishell print current git branch -> git branch --show-current

$ englishell show the sizes of all folders in parent of the current directory -> du -sh ../*

$ englishell how long the system has been running -> uptime

$ englishell generate strong password -> openssl rand -base64 14

  • by albert_e on 8/10/23, 6:20 AM

    Excellent idea. Should be able to do similar for other command line tools, right?