1. wsl 설치

    시작 → Windows 기능 켜기/끄기 → Hyper-V, Linux용 Windows 하위 시스템 체크 → 확인

    Untitled

    재부팅 → Microsoft store에서 Ubuntu, Windows Terminal 설치

    Untitled

    Untitled

    → Powershell 열기 → wsl --list -v 설치된 Ubuntu 버전이 2 인지 확인 → 2가 아니라면, wsl --set-version Ubuntu 2 wsl 버전 업그레이드

    Untitled

    Ubuntu 실행 → Username, password 설정 → sudo apt update && sudo apt upgrade -y 패키지 업데이트

    Untitled

  2. zshell, oh my zsh 설치

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

    Untitled

    Untitled

  3. 테마 설정

    터미널 설정 → Ubuntu → 모양 → 글꼴 MesloLGS NF로 변경 (option)

    Untitled

    powerlevel10k 설치

    https://github.com/romkatv/powerlevel10k

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

    vi ~/.zshrc
    
    ZSH_THEME=”powerlevel10k/powerlevel10k” 
    

    Untitled

    source ~/.zshrc
    

    원하는 테마로 설정

  4. zsh auto suggestion, zsh syntax highlighting

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

    plugins=(git zsh-syntax-highlighting zsh-autosuggestions)

    Untitled

    source ~/.zshrc
    

    Untitled

    명령어 입력하고 초록색으로 변경되는지 확인

  5. git 버전 업그레이드

    sudo add-apt-repository ppa:git-core/ppa
    
    sudo apt update && sudo apt install git -y
    

    Untitled

    git —version 으로 2.43 이상인지 확인

  6. mise 설치

    https://mise.jdx.dev/getting-started.html

    curl [<https://mise.run>](<https://mise.run/>) | sh
    
    echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
    
    source ~/.zshrc
    

    mise —version 버전 나오는지 확인

  7. mise global version 셋업

    mise ls-remote [plugin]
    
    # java
    mise use —g [email protected]
    
    # node.js
    mise use —g [email protected]
    
    # bun
    mise use —g bun@latest
    

    node —version 으로 버전 확인하기

  8. git credential manager 설정

    windows 에 git 설치

    git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe”
    

    gitlab에서 본인 repository clone

  9. fork 설치

    <aside> 💡 fork의 git을 wsl git으로 변경하는 과정

    </aside>

    windows용 fork 설치

    https://git-fork.com/

    https://github.com/andy-5/wslgit/releases/tag/v1.2.0

    wslgit.zip 다운 → 압축 해제 → C 드라이브로 이동 → 관리자 권한으로 install.bat 실행

    시스템 환경변수 설정 → 시스템 변수 → Path C:\wslgit\cmd → 확인

    Untitled

    fork 열기 → File → Preferences → Git → Git instance → custom git instance → C:\wslgit\bin/git 열기 → close

    Untitled