# Oh-My-Zsh

## Installation

#### 1. Installer Zsh

```bash
sudo apt install zsh
```

#### 2. Installer Oh-My-Zsh

[Oh-My-Zsh](https://ohmyz.sh/) permet de personnaliser plus facilement Zsh pour installer des thèmes par exemple&#x20;

```bash
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
```

## Personnalisation&#x20;

#### 1. T**hème**

1. Changer la ligne 11 du fichier `~/.zshrc`
2. Chosir un thème disponible [ici](https://github.com/robbyrussell/oh-my-zsh/wiki/Themes)

#### 2. Git

Si l'on veut ne pas avoir de sortie lorsque l'on tape `git branch` ou `git log` :

```bash
git config --global core.pager ''
```

#### 3. Auto-complétion

* Ajouter la ligne suivante à votre `.zshrc` ( ou ajoute une option avec la commande `setopt`)

```bash
setopt correct
```

Désormais pour accéder à `Document/info` ou peut simplement taper : `cd ~/D/i`&#x20;

## Zsh par défaut

Pour que zsh devienne votre terminal par défaut (et remplacer bash)&#x20;

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


---

# 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://developer.webrush.fr/terminal/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.
