Files
mkdocs/docs/Divers/Changer_shell.md
2019-06-19 10:19:31 +02:00

952 B

Changer de shell

Depuis le terminal:

On utilise la commande chsh.

Mais il faut que le nouveau shell soit déclaré dans /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/ksh
/bin/sh
/bin/tcsh
/bin/zsh

Sinon, on l'ajoute:

$ 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:

$ 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