summaryrefslogtreecommitdiff
path: root/plugins/homestead
diff options
context:
space:
mode:
authorHosmel Quintana <hosmelq@gmail.com>2018-07-01 11:39:44 -0600
committerMarc Cornellà <marc.cornella@live.com>2018-07-01 19:39:44 +0200
commit4aaafc0fe811f5be85b8c7b3e5db61d030a2d857 (patch)
tree668b79863c17c855b6c487cac9e1655fef411b83 /plugins/homestead
parent71e4a166cfd6c2cbd3b8ef7b48629c8cc30e10d2 (diff)
downloadzsh-4aaafc0fe811f5be85b8c7b3e5db61d030a2d857.tar.gz
zsh-4aaafc0fe811f5be85b8c7b3e5db61d030a2d857.tar.bz2
zsh-4aaafc0fe811f5be85b8c7b3e5db61d030a2d857.zip
Add Homestead plugin (#3712)
Diffstat (limited to 'plugins/homestead')
-rw-r--r--plugins/homestead/homestead.plugin.zsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/homestead/homestead.plugin.zsh b/plugins/homestead/homestead.plugin.zsh
new file mode 100644
index 000000000..cdbc564e4
--- /dev/null
+++ b/plugins/homestead/homestead.plugin.zsh
@@ -0,0 +1,10 @@
+# Homestead basic command completion
+_homestead_get_command_list () {
+ homestead --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
+}
+
+_homestead () {
+ compadd `_homestead_get_command_list`
+}
+
+compdef _homestead homestead