PYENV prompt.
[profile.git] / .ps1.d / p4.ps1
1 #!/bash
2
3 # This part of the prompt is taken from p4-completion.bashrc.
4 # It is shown only if __ps1_p4 is 1.  By default it is 0.
5
6 __ps1_p4=${__ps1_p4:-0}
7 __ps1_p4_colour256="0;38;5;142"
8 __ps1_p4_colour88="0;38;5;56"
9 __ps1_p4_colour="0;33"
10
11 function __ps1_p4() {
12   [ "$__ps1_p4" = "1" ] || return $1
13   __p4_ps1 "$(__ps1_prefix $1 __ps1_p4)"'%s'
14   return $1
15 }