Skip to content

Instantly share code, notes, and snippets.

@alinademi
Forked from webdevsuperfast/zsh.md
Created August 10, 2023 23:32
Show Gist options
  • Save alinademi/af7d01e63a10d4b1f6995baff6fa794a to your computer and use it in GitHub Desktop.
Save alinademi/af7d01e63a10d4b1f6995baff6fa794a to your computer and use it in GitHub Desktop.

Revisions

  1. @webdevsuperfast webdevsuperfast revised this gist Oct 13, 2021. No changes.
  2. @webdevsuperfast webdevsuperfast revised this gist Oct 11, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion zsh.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    `echo $(which zsh) | sudo tee -a /etc/shells`

    ## Set ZSH as default user shell
    `sudo chsh -s $(which zsh) $(which $USER)`
    `sudo chsh -s $(which zsh) $USER`

    ## Execute Shell or just restart terminal to take effect
    `exec $SHELL`
  3. @webdevsuperfast webdevsuperfast created this gist Sep 7, 2021.
    11 changes: 11 additions & 0 deletions zsh.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ## Install ZSH via HomeBrew
    `brew install zsh`

    ## Add ZSH to `/etc/shells`
    `echo $(which zsh) | sudo tee -a /etc/shells`

    ## Set ZSH as default user shell
    `sudo chsh -s $(which zsh) $(which $USER)`

    ## Execute Shell or just restart terminal to take effect
    `exec $SHELL`