mernen / completion-ruby Goto Github PK
View Code? Open in Web Editor NEWCommand-line completion for Ruby-related commands under Bash: rake, bundle, gem, rails, ruby, jruby
License: MIT License
Command-line completion for Ruby-related commands under Bash: rake, bundle, gem, rails, ruby, jruby
License: MIT License
When completing the build-command, it would be helpful to complete all the *.gemspec files after the command. Likewise, when installing, it would be helpful to complete *.gem files from the local directory.
The standard "return all files and directories in the current directory" works a bit, but is IMHO not as helpful as it could be.
Simple change in completion-rake
seems to work:
tasks=$("${rake_bin[@]}" --rakefile "$rakefile" --silent --describe 2>/dev/null |
to
tasks=$("${rake_bin[@]}" --rakefile "$rakefile" --silent -P 2>/dev/null |
rails generate
itself autocompletes, but past that, it just falls back to file completion... weird cause eg rails plugin
actually autocompletes to install remove
(even though its really slow) so some subcommands are working...
It seems for me not cached.
๐ I wonder if you can help tag the release so that the downstream package manager (like homebrew) can pick up the new changes. Thanks!
relates to Homebrew/homebrew-core#80895
cc @mernen
At the moment, completion-rails doesn't seem to recognize rails 4 projects as such, when I try to complete rails <TAB>
in a newly generated rails 4 project, all the commands it offers me are new
& plugin
.
Apart from recognizing that I'm actually in a rails project folder, I don't know if anything else needs to be adapted (haven't done much with rails 4, yet).
For some reason the ruby completion is giving me the
--bash: _filedir: command not found
...error. Any advice is appreciated. I do have bash-completion installed and all of my other bash scripts seem to work properly. I am surely missing the _filedir function somewhere.
bundler completion does not seem to be working at all for me. Just has no effect. Not being great at reading bash, I'm not sure how to troubleshoot, any advice?
completion-rails currently doesn't support Rails 3's different workflow and general usage: rails new
for creating new projects, rails
command for project tasks (instead of script/*
), etc.
Support for Rails 2 and 3 should preferably coexist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.