Skip to content

Instantly share code, notes, and snippets.

@vanmash
Last active May 23, 2020 11:27
Show Gist options
  • Select an option

  • Save vanmash/7e480166c4d5cfadb9d279ad14513f8c to your computer and use it in GitHub Desktop.

Select an option

Save vanmash/7e480166c4d5cfadb9d279ad14513f8c to your computer and use it in GitHub Desktop.

Change default shell to zsh on Mac

Install brew if needed.

Install and check if brew is installed properly

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

brew -v
brew doctor

Install zsh

brew update
brew install zsh

change default shell

Update shell list

echo $(brew --prefix)/bin/zsh | sudo tee -a /private/etc/shells

grep zsh /private/etc/shells

Change default shell for user johndoe

sudo chpass -s /usr/local/bin/zsh johndoe

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Enable plugins to use sudo plugin add it to the plugin array in ./zshrc file

plugins=(... sudo)

to do

  • themes
  • fonts
  • PROMPT
  • prompt generator

Option 4: Homebrew Fonts Best option if on macOS and want to use Homebrew.

All fonts are available via Homebrew Cask Fonts on macOS (OS X)

brew tap homebrew/cask-fonts brew cask install font-hack-nerd-font

Reference

source

oh-my-zsh

om-my-zsh sudo plugin

https://github.com/ryanoasis/nerd-fonts#option-4-homebrew-fonts

https://fiddle.jshell.net/seport/shrovLgf/show/light/

https://blog.carbonfive.com/writing-zsh-themes-a-quickref/

https://jonasjacek.github.io/colors/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment