May 2, 2019

113 words 1 min read

ZSH as a shell

Installing and basic config

ZSH and OhMyZsh

Do install with home brew if using MAC

    brew install zsh zsh-completion    

To set as the default shell

    chsh -s /bin/zsh

Or play around with the terminal preferences… For other check further instructions at https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH For linux just use your default pakage manager

install Oh-My-ZSH

  • via curl
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • via wget
    sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

I usually leave like that… for further customizations check the main repo at : https://github.com/robbyrussell/oh-my-zsh

one annoying thing is some commands e.g. git branch.. will open in vi instead of the terminal.. you will need to set their standard output manually

git config --global pager.branch false