conda-forge / conda-forge/git-feedstock

Should bash completion be auto-activated ?

Open
#67 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1
Forks
43
Avg merge
2d 14h
Merged PRs (30d)
2

Description

I see in

https://github.com/conda-forge/git-feedstock/blob/4b1de47dcb0ddb2a07f3fd9322ff3dfbc5ad8385/recipe/build.sh#L38-L40

that the bash-completion script in installed to `$CONDA_PREFIX/share/bash-completion/completions/git`.

Should this script also be added to `${PREFIX}/etc/conda/activate.d/` so that it is automatically sourced when the environment is activated ?
I think that would be a great addition and I'd be happy to submit a PR for that.

Reference: https://docs.conda.io/projects/conda-build/en/latest/resources/activate-scripts.html

Contributor guide

Open the contributing guide

Research direction

Start with recipe/build.sh at the linked lines and review Conda's activate-scripts documentation. Determine how the installed bash-completion script should be exposed through ${PREFIX}/etc/conda/activate.d/, then verify that activating an environment makes Git completion available.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.