56 lines
952 B
Markdown
56 lines
952 B
Markdown
# Changer de shell
|
|
|
|
|
|
|
|
#### Depuis le terminal:
|
|
|
|
On utilise la commande **chsh**.
|
|
|
|
Mais il faut que le nouveau shell soit déclaré dans <u>/etc/shells</u>.
|
|
|
|
```bash
|
|
# 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/ksh
|
|
/bin/sh
|
|
/bin/tcsh
|
|
/bin/zsh
|
|
```
|
|
|
|
Sinon, on l'ajoute:
|
|
|
|
```bash
|
|
$ grep -q -f $(which zsh) /etc/shells || echo $(which zsh) | sudo tee -a /etc/shells
|
|
```
|
|
|
|
|
|
|
|
Pour changer de shell et mettre zsh par défaut:
|
|
|
|
```bash
|
|
$ chsh -s $(which zsh)
|
|
```
|
|
|
|
|
|
|
|
#### En mode GUI:
|
|
|
|
*ubuntu:*
|
|
In your terminal window, Open Edit/Profile Preferences, negative to command tab.
|
|
Check Run a custom command instead of my shell.
|
|
Custom command: zsh
|
|
|
|
*macOS:*
|
|
|
|
1. Préférences Système
|
|
2. Utilisateurs et groupes
|
|
3. Choisir l'utilisateur
|
|
4. Cliquer sur le cadenas pour modifier
|
|
5. Clic droit sur l'utilisateur puis Options avancées
|
|
6. Choisir le shell d'accès
|
|
|