back

by nperson·12y ago·view on hn ↗
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
1 comments
I was curious about this, so I checked: zsh will preserve completions if you `alias g=git`.