Skip to content

Commit 78707ec

Browse files
committed
add git completion
1 parent 4fea176 commit 78707ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.devcontainer/features/bash-config/config/bash-config-rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ __bash_prompt() {
3737
}
3838
__bash_prompt
3939
export PROMPT_DIRTRIM=4
40+
41+
# enable bash completion for git
42+
if [[ -f /usr/share/bash-completion/completions/git ]]; then
43+
source /usr/share/bash-completion/completions/git
44+
elif [[ -f /etc/bash_completion.d/git ]]; then
45+
source /etc/bash_completion.d/git
46+
fi

0 commit comments

Comments
 (0)