Notice
Recent Posts
Recent Comments
목록Completion (1)
준호씨의 블로그
osx - bash git 자동완성 및 prompt
터미널에서 git 자동완성 (tab 으로 자동완성) 하기와 prompt 에 git 정보를 출력하는 방법이다. brew 로 bash-completion 설치 brew install git && brew install bash-completion ~/.bash_profile 에 다음 내용을 추가 한다. if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi GIT_PS1_SHOWDIRTYSTATE=true PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " {%s}")\[\03..
개발이야기
2017. 11. 22. 22:12