bang (!) command implementation in Koishi
Just like the bang command in bash, you can use !
to introduce a command that you have previously issued.
$ echo hello
hello
$ !!
hello
$ echo hello
hello
$ echo world
world
$ !1
hello
$ echo hello
hello
$ echo world
world
$ !-1
world
$ echo hello
hello
$ echo world
world
$ !e
world
$ echo hello
hello
$ echo world
world
$ !?l
world
$ echo hello
hello
$ !!:p
echo hello
This project is licensed under the MIT License.