mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-30 09:40:09 +00:00
truffle simple autocomplation was added
This commit is contained in:
parent
fe4b565986
commit
ce6ffdd961
2 changed files with 34 additions and 0 deletions
18
plugins/truffle/README.md
Normal file
18
plugins/truffle/README.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
Truffle simple plugin to make commands autocomplition
|
||||||
|
=====================================================
|
||||||
|
|
||||||
|
Supported commands
|
||||||
|
------------------
|
||||||
|
- init
|
||||||
|
- compile
|
||||||
|
- migrate
|
||||||
|
- test
|
||||||
|
- exec
|
||||||
|
- develop
|
||||||
|
- console
|
||||||
|
|
||||||
|
Installation nodes
|
||||||
|
------------------
|
||||||
|
```bash
|
||||||
|
plugins=(... truffle)
|
||||||
|
```
|
16
plugins/truffle/_truffle
Normal file
16
plugins/truffle/_truffle
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#compdef truffle
|
||||||
|
|
||||||
|
_arguments \
|
||||||
|
'1: :->command' \
|
||||||
|
'*: :->args'
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
command)
|
||||||
|
local commands=("init" "compile" "migrate" "test" "exec" "develop" "console")
|
||||||
|
_describe "command" commands
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
_files
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in a new issue