のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

git prompt

export PS1='[\w]:\[\033[01;32m\]$(if git status &>/dev/null;then echo $(parse_git_branch);fi)\[\033[00m\]$'