# Installing and Configuring ZSH

Zsh (Z Shell) is an extended version of the default Bash shell. Developers use Zsh for its massive plugin ecosystem, intelligent autocompletion, and visual themes that can display Git branch status directly in the prompt.

#### Installation

Bash

```
sudo apt install zsh -y
```

#### Setting ZSH as the Default Shell

Bash

```
chsh -s $(which zsh)
```

> ℹ️ Note: You must log out of Ubuntu and log back in for this change to take effect.

#### Installing Oh My Zsh (Optional but Recommended)

Oh My Zsh is a community-driven framework for managing your Zsh configuration.

Bash

```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```


---

# 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://shankar-lab.gitbook.io/mylearning/ubuntu-installation-guide/installing-and-configuring-zsh.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.
