Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
nperson
12y ago
0 comments
Save
Share
If you want to keep bash completion on working when having git aliased to g, try to add this line to your .bashrc:
# Complete aliased git, too. complete -o default -o nospace -F _git g
0 comments
1 comments · 1 top-level
top
newest
oldest
mythmon_
12y ago
I was curious about this, so I checked: zsh will preserve completions if you `alias g=git`.
j
/
k
navigate · click thread line to collapse