question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git autocomplete not working in subshell

See original GitHub issue

Thanks a lot for this awesome project 👍

I am trying out for the first time. I have git autocomplete enabled, using this https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

When I activate virtualenv using pipenv shell, git autocomplete doesn’t work anymore

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
atkinsgcommented, Mar 13, 2020

By moving source ~/.git-completion.bash into ~/.bashrc then git autocompletion is restored.

2reactions
chhantyalcommented, Feb 9, 2017

@nateprewitt I am using bash.

This is default configuration on OSX. I have only added this line in ~/.profile source ~/.git-completion.bash to enable git completion. I thought it was bug because activating venv doesn’t affect it.

Anyway, not big of an inconvenience. I will try to figure out what pipenv shell does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash tab completion fails inside of command substitution
The problem is that when I type in $(pidof and a few characters of the target processes' name, then try to tab complete...
Read more >
[Solved]-Git autocomplete in bash aliases?-bash - appsloveworld
On Linux Mint, the accepted answer didn't work for me. I was getting bash: [: 1: unary operator expected . I found the...
Read more >
Autocompletion for custom git commands
Custom git commands, or git extensions, can be used to make highly specialized commands for the project you are currently working in. This...
Read more >
Git alias with positional parameters - command - Stack Overflow
An alias without ! is treated as a Git command; e.g. commit-all = commit -a . ... "git new" is equivalent to running...
Read more >
Bash Autocomplete Subdirectory for Custom Command
The problem is, those subdirectories live in a static location. project directory ->public ->submodules ->a-module ->another-module ->other- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found