summaryrefslogtreecommitdiff
path: root/net:anevia.com/user:hhiegel/Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'net:anevia.com/user:hhiegel/Functions.zsh')
-rw-r--r--net:anevia.com/user:hhiegel/Functions.zsh23
1 files changed, 17 insertions, 6 deletions
diff --git a/net:anevia.com/user:hhiegel/Functions.zsh b/net:anevia.com/user:hhiegel/Functions.zsh
index 021fa56..49dc6a5 100644
--- a/net:anevia.com/user:hhiegel/Functions.zsh
+++ b/net:anevia.com/user:hhiegel/Functions.zsh
@@ -2,19 +2,30 @@
__debian_dist() {
[ -e ~/.pbuilderrc ] || return
+ eval $(grep '^:' ~/.pbuilderrc)
- _dist=${DIST:-$(awk < ~/.pbuilderrc '/DIST:=/ { gsub(/^.*{DIST:=/, "") ; gsub(/}$/, "") ; print ; exit }')}
- print -Pn $C_${_env_colors[dist_$_dist]:-$_env_colors[dist_none]}
+ 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 -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]}
+ #_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 -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
}