# Enable tab completion source ~/git-completion.bash # setting Colors! green="\[\033[0;32m\]" blue="\[\033[0;34m\]" purple="\[\033[0;35m\]" reset="\[\033[0m\]" # Change command prompt source ~/git-prompt.sh export GIT_PS1_SHOWDIRTYSTATE=1 # 위 코드는 repository에 변경이 있는 경우, 상태에 따라 *나 + 기호가 표시되도록 해줍니다. # unstaged 변경: * # staged 변경: + # setopt PROMPT_SUBST # MacOS ZSH에서는 PROMPT_SUBST설정 export PS1="$purple\u@\h$green\$(__git_ps1)$blue \w $reset $ " # generated by Git for Windows test -f ~/.profile && . ~/.profile test -f ~/.bashrc && . ~/.bashrc