Skip to content

AwesomeHamster/koishi-plugin-bang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koishi-plugin-bang

bang (!) command implementation in Koishi

Usage

Just like the bang command in bash, you can use ! to introduce a command that you have previously issued.

!! - Repeat the last command

$ echo hello
hello
$ !!
hello

!n - Repeat the nth command

$ echo hello
hello
$ echo world
world
$ !1
hello

!-n - Repeat the command n steps back

$ echo hello
hello
$ echo world
world
$ !-1
world

!string - Repeat the last command starting with string

$ echo hello
hello
$ echo world
world
$ !e
world

!?string - Repeat the last command containing string

$ echo hello
hello
$ echo world
world
$ !?l
world

:p suffix - Print the command instead of executing it

$ echo hello
hello
$ !!:p
echo hello

License

This project is licensed under the MIT License.

About

bang (!) command implementation in Koishi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published