# Configurar shell bash por defecto

Listamos las shell disponibles.

```sh
cat /etc/shells
```

Nos devolverá las opciones disponibles:

```sh
MacBook-Pro:~ jose$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zshshell
```

Establecemos por defecto la deseada, en nuestro caso, bash, nos pedirá nuestra contraseña de nuestro usuario.

```sh
chsh -s /bin/bash
```

Cerramos la terminal y la volvemos abrir, si queremos asegurarnos de que estamos usando la shell correcta.

```sh
echo "$SHELL"
```


---

# 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/configurar-shell-bash-por-defecto.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.
