diff options
author | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-03-30 11:07:37 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-03-30 11:07:37 +0200 |
commit | ddff852cfbdcc366df81f106a0b497b73a66bb12 (patch) | |
tree | be883138fd20b4395ebaa0f4e6822a202c4fd437 /net:lab1.anevia.com/user:hhiegel/Functions.zsh | |
parent | 5bfba26518c94a9f5b8df9f3b2926a3803b4eed9 (diff) |
[Anevia] specific config files
Diffstat (limited to 'net:lab1.anevia.com/user:hhiegel/Functions.zsh')
-rw-r--r-- | net:lab1.anevia.com/user:hhiegel/Functions.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net:lab1.anevia.com/user:hhiegel/Functions.zsh b/net:lab1.anevia.com/user:hhiegel/Functions.zsh new file mode 100644 index 0000000..4431ad2 --- /dev/null +++ b/net:lab1.anevia.com/user:hhiegel/Functions.zsh @@ -0,0 +1,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 +} + |