From 296f43a86c443b5f4178e80666c0c996073927dc Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Sat, 17 Oct 2015 20:59:48 -0500 Subject: [PATCH] Add bash + homebrew section and bash_profile mention Also removed instructions and references to set up git auto-completion. --- etc/README.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/etc/README.md b/etc/README.md index f076615d..991de3e1 100644 --- a/etc/README.md +++ b/etc/README.md @@ -1,23 +1,14 @@ # Installation instructions -## bash +## bash + Homebrew -Open your `.bashrc` file and add: +If you're using Homebrew, just run `brew install hub` and you should be all set with auto-completion. -> If you want to set up Git to automatically have Bash shell completion for all users, copy the `hub.bash_completion` script to the `/opt/local/etc/bash_completion.d` directory on Mac systems or to the `/etc/bash_completion.d/` directory on Linux systems. ([Source](https://git-scm.com/book/en/v1/Git-Basics-Tips-and-Tricks#Auto-Completion)) +## bash -* [Link to git auto-completion bash file](https://github.com/git/git/blob/master/contrib/completion/git-completion.bash) +Open your `.bashrc` file if you're on Linux, or your `.bash_profile` if you're on OS X and add: ```sh -# Make sure you've aliased hub to git -eval "$(hub alias -s)" - -# And make sure that the git auto-completion is being loaded -if [ -f /path/to/git-completion.bash ]; then - . /path/to/git-completion.bash -fi - -# Load hub autocompletion if [ -f /path/to/hub.bash_completion ]; then . /path/to/hub.bash_completion fi -- GitLab