Coder Social home page Coder Social logo

oh-my-zsh-tutorial's Introduction

The tutorial of how to install oh-my-zsh

  1. You need to install Zsh first:
    • sudo apt install zsh
      • if you get an error (dpkg was interrupted) you must run this command: sudo dpkg --configure -a
  2. Verify installation:
    • zsh --version
  3. You need to make it your default shell:
    • chsh -s $(which zsh)
  4. You need to log out and login:
    • Test that it worked
      • echo $SHELL If your result is /bin/zsh or similar then you're good to go
    • Do another test
      • $SHELL --version Expected result is zsh 5.4.2
  5. Installing oh-my-zsh:
    • You can use curl
      • via curl
          sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  6. Download the .zshrc file to your HOME directory
    • If it's done change the USER part to yours:

      export ZSH=/home/<USER>/.oh-my-zsh

      It will look something like this:

      export ZSH=/home/theuserijusttyped/.oh-my-zsh


OPTIONAL PART

  1. Plugins:
    • You can use the .zshrc file I uploaded to github it uses:
      • git
        • adds a lot of aliases, see here
      • sudo
        • if you forgot to write sudo before some command you can easily put it by pressing the ESC key twice
      • docker
        • gives autocomplete support
      • docker-compose
        • gives autocomplete support
      • history
        • if you type h (history) oh-my-zsh will show you the command-history
      • history-substring-search
        • if you start typing in any previous command (part of it) and hit UP key then the similar one will be shown

Other (useful) features

From ZSH

  • no need to type cd to change directory
    • you can simply type in the correct folder name and press ENTER to... well... ENTER to the directory
    • this is same for leaving a directory as well
      • simply type in .. instead of cd ..

From oh-my-zsh

  • typing l is like typing in ls -a

Custom

  • tre is a shorthand for tree with hidden files and color enabled
  • reload will reload your terminal window and you don't need to close and reopen after modifying your environment

oh-my-zsh-tutorial's People

Contributors

temeroleee avatar

Stargazers

Thierry  avatar Zsombor Szende avatar Norbert Fenk avatar Sohár Gábor avatar

Watchers

James Cloos avatar Sohár Gábor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.