Publish:

Tags:

Categories:

Shell

What is a shell

Bash

zsh

autocomplete sytanx highlighting

zsh are more configureable custim

plugin ecosystem

fish

Customize zsh

  • Oh-my-zsh
    1. Install Oh-my-zsh
    1
    2
    3
    4
    5
    6
    7
    8
    
      # curl
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
        
      # wget 
      sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
        
      # fetch
      sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    

    To Uninstall Oh-my-zsh

    1
    
      source ~/.oh-my-zsh/tools/uninstall
    
  1. Change preference

    1
    
     vi ~/.zshrc
    
  • powerlevel10k

    1
    
      git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
    

    add ZSH_THEME="powerlevel10k/powerlevel10k" in  ~/.zshrc

  • if any path errors add source ~/.bash_profile in  ~/.zshrc


Leave a comment