diff options
author | Hosmel Quintana <hosmelq@gmail.com> | 2018-07-01 11:39:44 -0600 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-07-01 19:39:44 +0200 |
commit | 4aaafc0fe811f5be85b8c7b3e5db61d030a2d857 (patch) | |
tree | 668b79863c17c855b6c487cac9e1655fef411b83 /plugins/homestead | |
parent | 71e4a166cfd6c2cbd3b8ef7b48629c8cc30e10d2 (diff) | |
download | zsh-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.zsh | 10 |
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 |