Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/notf0und/zsh-vapor

Laravel vapor plugin for zsh to help you to run vapor from anywhere in the project tree, with auto-completion!
https://github.com/notf0und/zsh-vapor

Last synced: about 2 months ago
JSON representation

Laravel vapor plugin for zsh to help you to run vapor from anywhere in the project tree, with auto-completion!

Lists

README

        

This plugin adds an `vapor` shell command with the following features:

* It will find and execute `vapor` from anywhere within the project file tree
(and you don't need to prefix it with `php` or `./`)
* It provides auto-completion for `vapor` commands (that also work anywhere
within the project).

## Requirements

* [zsh](https://www.zsh.org/)
* [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
* A [Laravel](https://laravel.com/) project
* [vapor-cli](https://github.com/laravel/vapor-cli) package installed with composer in the project

## Installation

### [Antigen](https://github.com/zsh-users/antigen)

Add the following bundle to your `.zshrc`:

```zsh
antigen bundle notf0und/zsh-vapor
```

### Oh-my-zsh

First download the plugin to your oh-my-zsh custom plugin location:

```zsh
git clone https://github.com/notf0und/zsh-vapor.git ~/.oh-my-zsh/custom/plugins/vapor
```

> Note that the repository name is prefixed with `zsh-`, however the plugin
> directory name should just be "vapor".

Then enable the plugin in your `.zshrc` file. For example:

```zsh
plugins=(
vapor
composer
git
)
```

## Usage

Simply use the command `vapor` from anywhere within the directory structure of
a Laravel project and it will search up the tree for the `vapor` command and
execute it. E.g:

```zshrc
$ pwd
~/MyProject/tests/Feature

$ vapor --version
Laravel Vapor 1.9.0
```

Tab-completion will work anywhere that `vapor` can be found, and the available
commands are retrieved on-demand. This means that you will see any vapor
commands that are available to you.

The plugin does not create any aliases for you, but the author would like to
offer some suggestions:

## License

This project is open-sourced software licensed under the MIT License - see the
[LICENSE](LICENSE) file for details

## Acknowledgements

* [jessarcher/zsh-artisan](https://github.com/jessarcher/zsh-artisan)
this is a copy of that repo with small changes to fit vapor instead of artisan