[태그:] zsh

  • 맥북 터미널 환경변수 설정

    터미널에 환경변수 추가하는 방법

    mysql 을 예시로 들면 터미널에 다음과 같이 입력 ‘ ‘ 안은 mysql이 있는 경로

    echo 'export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH'>> ~/.bash_profile
    source ~/.bash_profile

    zsh 사용시 환경변수를 못가져오는 이슈가 있다

    $  vi ~/.zprofile

    vi에디터로 .zprofile 을 열어 아래 명령을 작성

    source ~/.bash_profile
    source ~/.bashrc

    저장하면 적용되어 있다

    덧)

    zsh 환경변수

    ~/.zshrc