All Projects → mernen → Completion Ruby

mernen / Completion Ruby

Licence: mit
Command-line completion for Ruby-related commands under Bash: rake, bundle, gem, rails, ruby, jruby

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Completion Ruby

bash.env
Bash.env is a cascading Bash environment system for those who work on different hardware and OS environments. Similar to oh-my-zsh but for Bash, and special sauce for those who work 'ssh' on remote machines.
Stars: ✭ 50 (-61.24%)
Mutual labels:  bash-completion
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+2447.29%)
Mutual labels:  bash-completion
Vboxmanage Bash Completion
VBoxManage bash completion
Stars: ✭ 73 (-43.41%)
Mutual labels:  bash-completion
fzf-obc
fzf over bash complete
Stars: ✭ 34 (-73.64%)
Mutual labels:  bash-completion
nix-bash-completions
Bash completion for the Nix command line tools
Stars: ✭ 39 (-69.77%)
Mutual labels:  bash-completion
Gradle Completion
Gradle tab completion for bash and zsh
Stars: ✭ 748 (+479.84%)
Mutual labels:  bash-completion
Yarn Completion
Bash completion for Yarn
Stars: ✭ 210 (+62.79%)
Mutual labels:  bash-completion
Bash Argsparse
An high level argument parsing library for bash
Stars: ✭ 128 (-0.78%)
Mutual labels:  bash-completion
heroku-bash-completion
💀 OFFICIAL SUPPORT NOW AVAILABLE: https://github.com/heroku/heroku-cli-autocomplete
Stars: ✭ 12 (-90.7%)
Mutual labels:  bash-completion
Argcomplete
Python and tab completion, better together.
Stars: ✭ 942 (+630.23%)
Mutual labels:  bash-completion
burrow
burrow is a helper for building and managing a gopher hole
Stars: ✭ 43 (-66.67%)
Mutual labels:  bash-completion
ptrepl
Run command as REPL with completion(based on prompt_toolkit)
Stars: ✭ 38 (-70.54%)
Mutual labels:  bash-completion
Complete
bash completion written in go + bash completion for go command
Stars: ✭ 761 (+489.92%)
Mutual labels:  bash-completion
ps-bash-completions
Bridge to enable bash completions to be run from within PowerShell.
Stars: ✭ 61 (-52.71%)
Mutual labels:  bash-completion
Dargs
Enhance any command with dynamic arguments
Stars: ✭ 107 (-17.05%)
Mutual labels:  bash-completion
Emacs Bash Completion
Add programmable bash completion to Emacs shell-mode
Stars: ✭ 217 (+68.22%)
Mutual labels:  bash-completion
Fz
Cli shell plugin, the missing fuzzy tab completion feature of z jump around command.
Stars: ✭ 359 (+178.29%)
Mutual labels:  bash-completion
Magento2 Bash Completion
Magento2 Bash Completion
Stars: ✭ 129 (+0%)
Mutual labels:  bash-completion
Bash Completion Tutorial
Code of the bash completion tutorial
Stars: ✭ 110 (-14.73%)
Mutual labels:  bash-completion
Dockerize
Substitua instruções de serviços por operações de contêineres
Stars: ✭ 21 (-83.72%)
Mutual labels:  bash-completion

completion-ruby: bash completion for Ruby-related commands

completion-ruby is a set of bash scripts offering command-line completion for various Ruby-related commands and tools.

Installation

These scripts depend on some utility functions from bash-completion. It should be part of pretty much any modern Linux distribution, and you can install it on macOS using Homebrew:

brew install bash-completion

Save the completion files somewhere (in the same directory) and add the following line to your ~/.bashrc or ~/.profile:

. /path/to/completion-ruby-all

The completion-ruby-all script loads all the completions it finds, but only for the commands you appear to have installed. Alternatively, you can just save the specific scripts you wish, and source them individually.

Why yet another completion script?

Before writing my own, I'd seen about five different scripts for rake completion. None of them, though, at the same time:

  • cached the task list for fast results;
  • invalidated said cache when the rakefile was modified;
  • worked properly with namespaces; and
  • worked on subdirectories of the project

...among other minor quirks. While providing all of the above, a few other niceties were added, like command-line options completion and awareness of task arguments.

This script is not perfect (for instance, it won't update the cache if a dependency of the rakefile is updated; as a workaround, simply touch Rakefile), but it tries to cover all the most common cases without overcomplicating or overthinking the code.

License and website

Copyright © 2008-2017 Daniel Luz.

completion-ruby is distributed under the MIT license.

The source is available in a Git repository at GitHub.

For up-to-date information, visit this project's permalink.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].