Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !54

Add support for tab completion in bash

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/dpursehouse/tab-completion into master Sep 25, 2013
  • Overview 8
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: dpursehouse

Summary: when the bash_completion script is loaded, the user can use the tab key to automatically complete the name of the buck command, or if there are multiple commands beginning with the same letter(s) suggest commands to use.

Test:

Install the completion script:

$ ./scripts/bash_completion

Suggestion of all available commands:

$ buck audit build cache clean install project targets test uninstall

Suggestion of available commands with given starting letter:

$ buck c cache clean

Completion of command with given starting letter

$ buck b

("b" is auto-completed to "build")

Change-Id: I573808900811ed79733895f34cccb388535c80b0

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dpursehouse/tab-completion