방금 .bash_profile을 편집하여 git branch display를 추가했습니다. 필자는 온라인에서 찾은 버전을 기반으로했지만 쉘의 어떤 부분에 줄을 쓸 때 첫 줄을 덮어 쓴 다음 줄 바꿈을 시작합니다.첫 줄을 반복하는 배쉬
function proml {
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\[email protected]\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="${TITLEBAR}\
\w$WHITE\$(parse_git_branch)\\e[m$ "
이 내가 실수가 어디 있는지 모르겠어요 bash_profile에 대해 잘 모르는 때문에 parse_git_branch 기능
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
}
입니까?
나는 끝에 중괄호가 수행 기능이 내가 배 밖으로의 일부를 탈출 갔다 생각은 여전히 – eytanfb