Make indentation in agnoster theme more consistent

This commit is contained in:
Kaleb Elwert 2017-02-28 12:00:22 -08:00
parent d874c73f19
commit e87f96599c

View File

@ -128,25 +128,24 @@ prompt_git() {
} }
prompt_bzr() { prompt_bzr() {
(( $+commands[bzr] )) || return (( $+commands[bzr] )) || return
if (bzr status >/dev/null 2>&1); then if (bzr status >/dev/null 2>&1); then
status_mod=`bzr status | head -n1 | grep "modified" | wc -m` status_mod=`bzr status | head -n1 | grep "modified" | wc -m`
status_all=`bzr status | head -n1 | wc -m` status_all=`bzr status | head -n1 | wc -m`
revision=`bzr log | head -n2 | tail -n1 | sed 's/^revno: //'` revision=`bzr log | head -n2 | tail -n1 | sed 's/^revno: //'`
if [[ $status_mod -gt 0 ]] ; then if [[ $status_mod -gt 0 ]] ; then
prompt_segment yellow black prompt_segment yellow black
echo -n "bzr@"$revision "✚ " echo -n "bzr@"$revision "✚ "
else else
if [[ $status_all -gt 0 ]] ; then if [[ $status_all -gt 0 ]]; then
prompt_segment yellow black prompt_segment yellow black
echo -n "bzr@"$revision echo -n "bzr@"$revision
else
else prompt_segment green black
prompt_segment green black echo -n "bzr@"$revision
echo -n "bzr@"$revision fi
fi
fi
fi fi
fi
} }
prompt_hg() { prompt_hg() {