Hacker News new | ask | show | jobs
by nperson 4511 days ago
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`.