File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 38
38
. ~ /.config/git/git-prompt.sh
39
39
fi
40
40
else
41
- # Taken from https://github.com/git-for-windows/build-extra/blob/main/git-extra/git-prompt.sh
42
- PS1=' \[\033]0;$TITLEPREFIX:$ {PWD//[^[:ascii:]]/?}\007\]' # set window title
41
+ # Taken parts from https://github.com/git-for-windows/build-extra/blob/main/git-extra/git-prompt.sh
42
+ PS1=' \[\033]0;${ TITLEPREFIX:+$TITLEPREFIX:}$ {PWD//[^[:ascii:]]/?}\007\]' # set window title to TITLEPREFIX (if set) and current working directory
43
43
# PS1="$PS1"'\n' # new line (disabled)
44
- PS1=" $PS1 " ' \[\033[32m\]' # change to green
44
+ PS1=" $PS1 " ' \[\033[32m\]' # change to green and bold
45
45
PS1=" $PS1 " ' \u@\h ' # user@host<space>
46
46
PS1=" $PS1 ${MSYSTEM: +\[\0 33[35m\]$MSYSTEM } " # show MSYSTEM in purple (if set)
47
- PS1=" $PS1 " ' \[\033[33m\]' # change to brownish yellow
47
+ PS1=" $PS1 " ' \[\033[1; 33m\]' # change to dark yellow in bold
48
48
PS1=" $PS1 " ' \w' # current working directory
49
49
if test -z " $WINELOADERNOEXEC "
50
50
then
66
66
fi
67
67
fi
68
68
fi
69
- PS1=" $PS1 " ' \[\033[0m\]' # change color
69
+ PS1=" $PS1 " ' \[\033[0m\]' # reset color
70
70
PS1=" $PS1 " ' \n' # new line
71
+ PS1=" $PS1 " ' \[\033[30;1m\]' # change color to grey in bold
71
72
PS1=" $PS1 " ' λ ' # prompt: Cmder uses λ
73
+ PS1=" $PS1 " ' \[\033[0m\]' # reset color
72
74
fi
73
75
74
76
MSYS2_PS1=" $PS1 " # for detection by MSYS2 SDK's bash.basrc
You can’t perform that action at this time.
0 commit comments