mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge d161b90684 into 291e96dcd0
This commit is contained in:
commit
78822a5a32
1 changed files with 22 additions and 0 deletions
22
plugins/serve/serve.plugin.zsh
Normal file
22
plugins/serve/serve.plugin.zsh
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
#
|
||||||
|
# serve-autocompletion-zsh
|
||||||
|
#
|
||||||
|
# Autocompletion for `serve` static HTTP server
|
||||||
|
#
|
||||||
|
# Copyright(c) 2016 Alexander Krivoshhekov <SuperPaintmanDeveloper@gmail.com>
|
||||||
|
# MIT Licensed
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Alexander Krivoshhekov
|
||||||
|
# Github: https://github.com/SuperPaintman
|
||||||
|
#
|
||||||
|
|
||||||
|
if [[ -z $commands[serve] ]] || ! serve --completion=zsh >/dev/null 2>&1; then
|
||||||
|
echo 'serve is not installed, you should install "https://github.com/SuperPaintman/serve" first'
|
||||||
|
return -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
eval "$(serve --completion=zsh)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue