haskell / haskell/cabal

Add a mechanism that allows to install bash completion scripts to a standard location

Open
#947 0 comments 0 reactions 0 assignees View on GitHub
Cabal: other priority: low type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

It would be nice if packages could place bash completion scripts into some standard location, e.g. `~/.cabal/bash_completion.d/`, so that I can source all of them like so:

``` bash
if [ -d ~/.cabal/bash_completion.d/ ]; then
for file in `ls -d ~/.cabal/bash_completion.d/*`; do
. $file
done
fi
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Cabal installs package-provided files and how bash completion scripts are currently handled; the issue names no files or entry points. Define the installation location and package behavior, then verify that installed completion scripts can be sourced together from the proposed standard directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, haskell
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.