blob: 4431ad2b983bf1723c253785911a104e64504690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
__debian_dist() {
_dist=${DIST:-$(awk < ~/.pbuilderrc '/DIST:=/ { gsub(/^.*{DIST:=/, "") ; gsub(/}$/, "") ; print ; exit }')}
print -Pn $C_${_env_colors[dist_$_dist]:-$_env_colors[dist_none]}
( export | grep -q '^DIST=' ) && print -Pn ";"$color[bold]
print -Pn $_C
print -n $_dist
print -Pn $C_"38;5;33"$_C"-"
_base=${BASE:-$(awk < ~/.pbuilderrc '/BASE:=/ { gsub(/^.*{BASE:=/, "") ; gsub(/}$/, "") ; print ; exit }')}
print -Pn $C_${_env_colors[base_$_base]:-$_env_colors[base_none]}
( export | grep -q '^BASE=' ) && print -Pn ";"$color[bold]
print -Pn $_C
print -n $_base
}
|