# Habilitar Bash Completion

Lo primero sera establecer por defecto bash en lugar de zsh

```shell
chsh -s /bin/bash
```

\
Instalamos el gestor de paquetes brew

```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

La instalacion durara unos minutos, despues reiniciar el Mac.\
\
\
Instalar bash completion

```shell
brew install bash-completion
```

Y para terminar, metemos una linea en el .bash\_profile de nuestro usuario

```shell
echo "[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion" >> ~/.bash_profile
```

```shell
source ~/.bash_profile
```

\
Testing

```shell
$ git [tab][tab]
add               commit            gc                mv                request-pull      stage 
am                config            gitk              notes             reset             stash 
apply             checkout          grep              prune             restore           status 
archive           cherry            gui               pull              revert            submodule 
bisect            cherry-pick       help              push              rm                switch 
blame             describe          init              range-diff        scalar            tag 
branch            diff              instaweb          rebase            send-email        whatchanged 
bundle            difftool          log               reflog            shortlog          worktree 
citool            fetch             maintenance       remote            show              
clean             format-patch      merge             repack            show-branch       
clone             fsck              mergetool         replace           sparse-checkout
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.azagra.dev/macintosh/habilitar-bash-completion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
