Skip to content

Commit 4276636

Browse files
committed
✨ feat: added completion for 'g' as alias of 'git'
1 parent ee28dce commit 4276636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

home/.bashrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ alias ux='chmod u+x' # ---x------ (user: --x, group: -, other:
4343
# git
4444
alias g='git'
4545
\. /mingw64/share/git/completion/git-completion.bash
46+
# Enable tab completion for 'g' as an alias for 'git'
47+
if type _git &>/dev/null; then
48+
complete -o default -o nospace -F _git g
49+
fi
4650

4751
if command -v lazygit >/dev/null 2>&1; then
4852
alias lg='lazygit'

0 commit comments

Comments
 (0)