Add a mechanism that allows to install bash completion scripts to a standard location
Open
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
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