summaryrefslogtreecommitdiff
path: root/net:anevia.com/user:hhiegel/Functions.zsh
blob: 49dc6a5362b7de251b954309584fa75e57ee1958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

__debian_dist() {

	[ -e ~/.pbuilderrc ] || return
	eval $(grep '^:' ~/.pbuilderrc)

	print -Pn $T_$_tu_$_T" "

	#_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

	print -Pn $C_${_env_colors[arch_$ARCH]:-$_env_colors[arch_none]}
	( export | grep -q '^ARCH=' ) && print -Pn ";"$color[bold]
	print -Pn $_C
	print -n " "$ARCH

	print -Pn $C_$_prompt_colors[bar]$_C
	print -Pn " "$T_$_tt_$_T
}