Giter Club home page Giter Club logo

rake-completion's Introduction

Warning: this project is obsolete

Updates and support are no longer provided. Feel free to improve it.


Rake Completion

Bash completion support for Rake, Ruby Make.

 $ rake st<Tab>
 $ rake stats

 $ rake test<Tab><Tab>
 test              test:integration  test:recent       
 test:benchmark    test:plugins      test:uncommitted  
 test:functionals  test:profile      test:units

It caches tasks to .rake_tasks~ file, which makes it faster from default completion from Ubuntu rake.

If Rakefile is not present in current directory, autocomplete will try to locate it in parent directories up to filesystem root, so running tasks is also possible from subdirectories.

Install

Ubuntu

Obsolete: the package is no longer available at PPA.

1. Add Ubuntu on Rails PPA:

    $ sudo add-apt-repository ppa:ubuntu-on-rails/ppa
    $ sudo apt-get update

2. Install rake-completion package:

    $ sudo apt-get install rake-completion

Mac + Homebrew

Make sure you are running an up-to-date bash version (at least 4.3).

Installing bash and bash-completion with homebrew run:

$ brew install bash bash-completion

Then install this script:

$ curl -o /usr/local/etc/bash_completion.d/rake https://raw.githubusercontent.com/ai/rake-completion/master/rake

Other UNIX-like

System

Copy rake script to /etc/bash_completion.d/.

$ wget -O /etc/bash_completion.d/rake https://raw.githubusercontent.com/ai/rake-completion/master/rake

User

Copy rake script (for example, to ~/scripts/) and add to your .bashrc:

. ~/scripts/rake

Cache

Tasks cache in .rake_tasks~ file is placed in directory with Rakefile and will be updated on changes in Rakefile or any *.rake files.

To remove tasks cache (and another backup files) from Git repository add *~ to .gitignore file.

rake-completion's People

Contributors

ai avatar bdo avatar dialex avatar lewstherin avatar simonweil avatar stefansundin avatar stevenkaras avatar trayo 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.