diff options
author | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-04-01 10:34:34 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@anevia.com> | 2015-04-01 10:35:08 +0200 |
commit | ab253ff38888a9caa4f72d729f53f54e455b8396 (patch) | |
tree | c8a313c77a8187d128b266381480611c58c2b97a /net:anevia.com/user:hhiegel/Functions.zsh | |
parent | d22a945d474fbfbc8756f2e22c9b2ca47543c5f6 (diff) |
[anevia] moved host lab1.anevia.com to anevia.com, +added symlink
Diffstat (limited to 'net:anevia.com/user:hhiegel/Functions.zsh')
-rw-r--r-- | net:anevia.com/user:hhiegel/Functions.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net:anevia.com/user:hhiegel/Functions.zsh b/net:anevia.com/user:hhiegel/Functions.zsh new file mode 100644 index 0000000..4431ad2 --- /dev/null +++ b/net: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 +} + |