mirror of https://github.com/ashikslab/smartsh.git
Compare commits
2 Commits
06dca429e9
...
a6763b8006
Author | SHA1 | Date |
---|---|---|
Ashik | a6763b8006 | |
Ashik | 61b99fad99 |
|
@ -1,6 +1,12 @@
|
||||||
<h1>smartsh.py</h1>
|
<h1>smartsh.py</h1>
|
||||||
|
|
||||||
*smartsh.py* is a simple python script that I wrote which can take a task description (any string) as argument and query OpenAPI's API to tell you how to accomplish the given task using a shell command. Yes, chatgpt from command line (sort of). But let me tell you a simple trick that you can use to supercharge your bash with it!
|
*smartsh.py* is a simple python script that I wrote which can take a task description (any string) as argument and query OpenAPI's API to tell you how to accomplish the given task using a shell command.
|
||||||
|
|
||||||
|
<h3>See it in action on asciinema!</h3>
|
||||||
|
|
||||||
|
[![asciicast](https://asciinema.org/a/576695.png)](https://asciinema.org/a/576695)
|
||||||
|
|
||||||
|
Yes, chatgpt from command line (sort of). But let me tell you a simple trick that you can use to supercharge your bash with it!
|
||||||
|
|
||||||
bash (I think starting from 4.0) conveniently provides a handler for situations when a command that the user entered is invalid.
|
bash (I think starting from 4.0) conveniently provides a handler for situations when a command that the user entered is invalid.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue