Code Monkey home page Code Monkey logo

symfony2-autocomplete's Introduction

Symfony2 autocomplete

This is a very simple script to autocomplete symfony2 commands in a bash shell.

It easier to install than the KnplabsSymfony2AutocompleteBundle because it is only a single file. No need to change anything in your Symfony2 project.

The script itself is not nice (you'll discover some PHP inside ) - but it gets the job done and could be useful to some people.

Install

Download the symfony2-autocomplete.bash.

For example, if you want to be able to pull the changes in the future:

cd ~/Sites/
git clone https://github.com/KnpLabs/symfony2-autocomplete

Now edit your bashrc.

MacOS:

mate ~/.bash_profile

Add a source command at the end:

source ~/Sites/symfony2-autocomplete/symfony2-autocomplete.bash

Linux:

bash-completion must be installed.

cp symfony2-autocomplete.bash /etc/bash_completion.d/

Add the following line to your ~/.bashrc or .bash_profile:

if [ -e ~/symfony2-autocomplete.bash ]; then
    . ~/symfony2-autocomplete.bash
fi

Restart your bash and you should be able to autocomplete in a Symfony2 project:

./app/console doc[TAB]

##Extra

It also contains a symfony script, which can be used to call synfomy console from child directories too.

Add the bin folder to your $PATH or symlink the script to bin folder.

ln -s `pwd`/bin/symfony /usr/local/bin/symfony

symfony2-autocomplete's People

Contributors

bamarni avatar cursedcoder avatar mbontemps avatar pulse00 avatar qbbr avatar sarim avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.