About Chris Morrell

I am a Philadelphia web designer and developer who focuses on PHP development and usable design. I am also the Director of IT for the International Association of Certified Home Inspectors.

Please Note: My site fell victim to a Wordpress security flaw a few weeks ago, and I'm just getting everything back to normal. Please bear with me.

I am currently not accepting any new clients.

Other Sites/Clients

Contact Me

If you need to get in touch with me, my name is Chris and my domain name is cmorrell.com. Think about it.

Zend Framework Bash Completion Script

Posted by Chris Morrell on March 20th, 2010 in Zend Framework

If you use the Zend Framework CLI interface much you probably find yourself expecting tab-completion to work.  Well, with this bash completion script it will.  Just add the following line to your .bashrc or .bash_profile:

source path/to/zf.bash

Next time you load the terminal, you can type “zf c” and hit TAB twice to see a list of available commands (change, configure and create” or type “zf cr” and hit TAB to have “create” automatically inserted for you.  The script works for both action names and provider names (but not for anything past that).  Eventually I want the script to dynamically load the available commands (so that it works with custom providers and future versions of ZF without updates) but I couldn’t get that working for this version so I just hard coded them.

There’s also a version that completes commands from the Galahad Framework Extension if you’re testing that out…

Zend Framework CLI Bash Completion Script [1.71 KB]

Enjoy!

9 Comments »

6 Tweets

9 Responses to “Zend Framework Bash Completion Script”

  1. newmediahub

    Chris Morrell posted: Zend Framework Bash Completion Script http://bit.ly/bQTRxy

    This comment was originally posted on Twitter

  2. raphaelstolt

    Sweet! A bash completion script for the basic #zf Zend_Tool commands http://is.gd/aQqBe. /by @inxilpro

    This comment was originally posted on Twitter

  3. teengenerate

    RT @raphaelstolt: Sweet! A bash completion script for the basic #zf Zend_Tool commands http://is.gd/aQqBe. /by @inxilpro

    This comment was originally posted on Twitter

  4. Zend Framework in Action » Chris Morell: Zend Framework Bash Completion Script

    [...] Morell has created a bash completion script for Zend Framework. If you use the Zend Framework CLI interface much you probably find yourself expecting [...]

  5. zendframework

    Zend Framework Bash Completion Script (by Chris Morrell) http://cmorrell.com/web-development/zf/bash-completion-script-751

    This comment was originally posted on Twitter

  6. Zend Framework News » Blog Archive » Autovervollständigung für Zend_Tool
  7. addfs

    Zend Framework Bash Completion Script http://bit.ly/a6qTxR

    This comment was originally posted on Twitter

  8. ostseenetz

    Zend Framework Bash Completion Script http://bit.ly/aZwSC8

    This comment was originally posted on Twitter

  9. Podpowiadanie komend Zend Framework w bashu

    [...] na ciekawy wpis na blogu Chrisa Morella odnośnie podpowiadania komend Zend Framework w środowisku bash. W systemach [...]

Leave a Reply

Additional comments powered by BackType

Comments & Trackbacks

You can leave a response, or trackback from your own site. Follow any responses to this entry through the RSS 2.0 feed.

More...

@inxilpro

  • Wet Hot American Summer at World Cafe Live. It's free and dead. 2 days ago
  • Would really like something that combines Twitter starred + Google Reader starred/liked + Delicious.com. Does such a thing exist? 6 days ago
  • Also, how can OS X be so rock solid and other Apple-developed software be so buggy? 1 week ago
  • More updates...
Copyright © Chris Morrell, Powered by WordPress, Entry RSS Feed / Comment RSS Feed