zsh

  1. Windows Subsytem Linux(WSL) 활성화
  2. ubuntu 20.04 설치
  3. Windows 터미널 설치
  4. Windows Terminal에서 ubuntu 열기
  5. On Linux
    1. sudo apt update

    2. sudo apt upgrade -y

    3. zsh 설치

      sudo api install zsh -y
      sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    4. zsh 플러그인 설치
      • zsh-syntax-highlighting

        git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

      • zsh-autosuggestions

        git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

      • fonts-powerline

        sudo apt-get install fonts-powerline

    5. 플러그인 추가
      vi ~/.zshrc 
      
      ...
      plugins=(
          git
          zsh-syntax-highlighting
          zsh-autosuggestions
       )  
      ...
      
    6. zsh 테마 변경
      • git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
        echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

  • public/computer/zsh.txt
  • Last modified: 2022/08/03 09:49
  • by alex