ahmet2106 / artisanBashCompletion

Bash completion for Laravel 4 artisan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updated Version

Original project https://github.com/janka/artisanBashCompletion

artisanBashCompletion

This adds bash completion for Laravel 4s artisan CLI.

  • Put "listForBash.php" in app/commands/ and register it in app/start/artisan.php with Artisan::add(new listForBash);

  • Make artisan executable with chmod +x artisan

  • Create an alias for the php artisan command with the likes of echo 'alias artisan="php artisan"' >> .bash_profile

  • Put the file "artisan" in /etc/bash_completion.d/ and remember to source it with . /etc/bash_completion.d/artisan (or source every completion script with . /etc/bash_completion) if it does not happen already on your system.

Now use artisan and start tabbing away...

Tested on Debian and php 5.4 (I fancy the new array style, but replace that and it should work with prior versions)

Have fun...

About

Bash completion for Laravel 4 artisan


Languages

Language:PHP 100.0%