> For the complete documentation index, see [llms.txt](https://developer.webrush.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.webrush.fr/terminal/zsh.md).

# 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)
```
