์๋ ํ์ธ์, ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ ์ด์ ๋ฅผ ์๊ณ ์ถ์ต๋๋ค.
Last login: Sun Sep 13 20:15:26 on console
/Users/leongaban/.oh-my-zsh/oh-my-zsh.sh:3: command not found: env
/Users/leongaban/.oh-my-zsh/lib/theme-and-appearance.zsh:9: command not found: uname
/Users/leongaban/.oh-my-zsh/lib/theme-and-appearance.zsh:13: command not found: uname
โ ~ zsh --version
zsh 5.0.2 (x86_64-apple-darwin13.0)
โ ~
๋ด ํ์ฌ .zshrc
export ZSH=/Users/leongaban/.oh-my-zsh
export TERM="xterm-256color"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/Users/leongaban/bin/subl"
export PATH="/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH"
export PATH="/usr/local/mysql"
export EDITOR='subl -w'
source $HOME/.bash_profile
source $ZSH/oh-my-zsh.sh
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
๋ด username/Projects/env ํด๋์ ๊ฐ์ ํ๊ฒฝ์ ์์ฑํ์ง๋ง ๊ฑฐ๊ธฐ์ ๋ํ ๊ฒฝ๋ก๊ฐ ์ค์ ๋์ด ์์ง ์์ต๋๋ค. ์ด ๋ณ์นญ๋ง ์์ผ๋ฉด ๋ฉ๋๋ค.
# Virtual Environment
alias activate="source env/bin/activate"
export PATH="/usr/local/mysql"
๋ฅผ ์ฃผ์ ์ฒ๋ฆฌํ๊ณ ๋ค์ ์๋ํฉ๋๋ค. $path๋ฅผ ์์ด๋ฒ๋ ธ์ต๋๋ค.
sudo apt-get install --reinstall coreutils
.zshrc์์ ์ฌ์ฉ์ ์ ์ ํจ์๋ฅผ ์์ฑํ๋ ๊ฒฝ์ฐ home
, path
, user
์ ๊ฐ์ ํ๊ฒฝ ์ด๋ฆ์ผ๋ก ๋ณ์๋ฅผ ํธ์ถํ์ง ๋ง์ญ์์ค. ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํ์ง ์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
export PATH="/usr/local/mysql"
๋ฅผ ์ฃผ์ ์ฒ๋ฆฌํ๊ณ ๋ค์ ์๋ํฉ๋๋ค. $path๋ฅผ ์์ด๋ฒ๋ ธ์ต๋๋ค.