Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


I was curious about this, so I checked: zsh will preserve completions if you `alias g=git`.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: