The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Bash completion for the PEAR Installer

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tobias Schlitt

Posts: 120
Nickname: dotxp
Registered: Sep, 2004

Tobias Schlitt is a geek, highly addicted to PHP.
Bash completion for the PEAR Installer Posted: May 31, 2005 7:42 PM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Tobias Schlitt.
Original Post: Bash completion for the PEAR Installer
Feed Title: Tobias Schlitt - Weblog
Feed URL: http://php-applications.de/lists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundlists/listinfo/phpug-dortmundapplications/blog/rss.php?category=1_PEAR&version=0.91
Feed Description: a passion for php
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Tobias Schlitt
Latest Posts From Tobias Schlitt - Weblog

Advertisement

I always wanted to have the PEAR commands get auto completed on my bash. Here is how it works:

complete -W "`pear 2>&1 | awk '{ORS=" "} /[a-zA-Z-]+  / {print $1}'`" -f pear

Simply run the command in your shell and/or add it to e.g. your .bashrc. You will have autocompletion for all PEAR Installer commands and for filenames in paralell.

Usually I'd have expected to get the stuff working using complete's "-C" option, this did not work for me, I got a list of all possible commands when typing <tab><tab>, but neither a correct completion suggestion nor a completion.

Read: Bash completion for the PEAR Installer

Topic: FlexySvn packaged and released Previous Topic   Next Topic Topic: PHP Trackback

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use