From 93f362669f1da5ac5d89ffa1aeb04820dfa5898a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 1 Apr 2015 10:41:06 +0200 Subject: [Funcs] Don’t check for ~/.pbuilderrc if it doesn’t exist.. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net:lab1.anevia.com/user:hhiegel/Functions.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net:lab1.anevia.com/user:hhiegel/Functions.zsh b/net:lab1.anevia.com/user:hhiegel/Functions.zsh index 4431ad2..021fa56 100644 --- a/net:lab1.anevia.com/user:hhiegel/Functions.zsh +++ b/net:lab1.anevia.com/user:hhiegel/Functions.zsh @@ -1,5 +1,8 @@ __debian_dist() { + + [ -e ~/.pbuilderrc ] || return + _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] -- cgit v1.2.3