Last Updated: February 25, 2016
·
1.535K
· afterdesign

Bash completion + bower completion on mac.

  1. Install bash-completion2 and nodejs:

    brew install bash-completion2
    brew install node
  2. Add these lines to your .bash_profile:

    if [[ -f $(brew --prefix)/share/bash-completion/bash_completion ]]; then
        . $(brew --prefix)/share/bash-completion/bash_completion
    fi
  3. Install bower:

    npm install bower -g
  4. Generate bower completion:

    bower completion > /usr/local/share/bash-completion/completions/bower
  5. Open new tab/window or just source .bash_profile