Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How to change your UNIX login shell from the default assigned Bourne (BASH) shell

Step-by-step guide

Open Terminal: 

  1. Check and note your current login shell 

    echo $SHELL
    /bin/bash
  2. To change your shell, create a ~/.bash_profile in the root of your home directory with the following lines or if you already have a .bash_profile append it with the below entries.  This example is for zsh.

    export SHELL=/bin/zsh
    exec zsh

    List of other shell on macOS

    /bin/bash
    /bin/csh
    /bin/ksh
    /bin/sh
    /bin/tcsh
    /bin/zsh
  3. Check and note your new login shell by opening another terminal window and do another "echo $SHELL" this time you should get zsh instead.

    echo $SHELL
    /bin/zsh





  • No labels