4aaafc0fe811f5be85b8c7b3e5db61d030a2d857

Author
Hosmel Quintana <hosmelq@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add Homestead plugin (#3712)

Diff

 1diff --git a/plugins/homestead/homestead.plugin.zsh b/plugins/homestead/homestead.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..cdbc564e44e614897f9e204b7ee3be6e6d206581
 4--- /dev/null
 5+++ b/plugins/homestead/homestead.plugin.zsh
 6@@ -0,0 +1,10 @@
 7+# Homestead basic command completion
 8+_homestead_get_command_list () {
 9+  homestead --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
10+}
11+
12+_homestead () {
13+  compadd `_homestead_get_command_list`
14+}
15+
16+compdef _homestead homestead