Opened 12 months ago

Closed 4 months ago

Last modified 4 months ago

#9005 closed feature request (fixed)

Ship default bash completion file with ghc

Reported by: td123 Owned by: kolmodin
Priority: lowest Milestone:
Component: None Version: 7.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions: Phab:D536


Now that ticket #7843 has been closed, it would be great to ship a default implementation of a bash completion file for ghc.

Since there isn't a standard location to install completion files across distros, it might be good to have an optional flag during configure to specify a location and if one is specified, install the bash completion file into that location.

The following links provide implementations that have worked for me:

Change History (6)

comment:1 Changed 12 months ago by ezyang

(I deleted the duplicate ticket.)

comment:2 Changed 4 months ago by kolmodin

  • Owner set to kolmodin

I'm working on this.

A bash completion will be added to GHC, and an accompanying README.

comment:3 Changed 4 months ago by kolmodin

  • Differential Revisions set to Phab:D536

comment:4 Changed 4 months ago by Austin Seipp <austin@…>

In 643635ea1d779054e1bb3b1825cd7894c5748811/ghc:

Add bash completion and README

The bash completion is simple but works both for ghc and ghci.
The README explains to the user what they have to do to get
it working (hopefully nothing).

Test Plan: Follow the README, then enjoy the cli completion in your terminal!

Reviewers: austin

Subscribers: thomie, carter, jstolarek

Differential Revision:

GHC Trac Issues: #9005

comment:5 Changed 4 months ago by kolmodin

  • Resolution set to fixed
  • Status changed from new to closed

Bash completion file and README has been added to the repo.

The file is to be installed by the distro packagers, so no additional work will be done during the installation phase.

Closing as fixed.

comment:6 Changed 4 months ago by jstolarek

Shouldn't we keep this one open until User's Guide gets updated?

Note: See TracTickets for help on using tickets.