mathiasbynens / mathiasbynens/dotfiles
Bash Completion with aliases
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 31.5k
- Forks
- 8.4k
- PR merge metrics
- No merged PRs in 30d
Description
I'm wondering how you get bash completion to work nicely with your `g="git"` alias?
I was having problems with this and various sites suggest you need some variation on `__git_complete g __git_main` in `.bash_profile` (which seems to sort it for me) but there doesn't seem to be anything like that here?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the repository's Bash configuration and compare it with the .bash_profile approach described in the issue, especially __git_complete g __git_main. Verify the chosen configuration gives the g="git" alias Git completion, then test it in an interactive Bash shell.
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
- Mostly clear
- Newbie friendliness
- 30/100