Hacker News new | past | comments | ask | show | jobs | submit login

While not an issue in Zsh, one bummer about using shell aliases in Bash is that auto-completion won't work. That doesn't really matter with an alias for `git status`, but it's annoying for plenty of others.

You can get around it doing the following:

    _completion_loader git  # manually load git completion functions

    alias g='git'
    __git_complete g _git

    alias ga='git add'
    __git_complete ga _git_add
For a more exhaustive list, see https://gist.github.com/brbsix/713feaf3034d60bbe4774cb8ee03b....



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: