ZSH 프롬프트 가상환경 보이게 설정
·
카테고리 없음
`~/.zshrc` 에 추가 zsh_virtualenv_prompt() { # If not in a virtualenv, print nothing [[ "$VIRTUAL_ENV" == "" ]] && return # Distinguish between the shell where the virtualenv was activated # and its children local venv_name="${VIRTUAL_ENV##*/}" if typeset -f deactivate >/dev/null; then echo "[%F{green}${venv_name}%f] " else echo " " fi}setopt PROMPT_SUBST PROMP..