Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BUG: failure in "vcs_info prompt" aborts precmd function
- X-seq: zsh-workers 33771
- From: Daniel Hahler <dhahler@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: BUG: failure in "vcs_info prompt" aborts precmd function
- Date: Sun, 23 Nov 2014 16:58:07 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=7Sc74UsyRbuDCknL8UDP80PtCBZLNZSmT7xMidw8JHI=; b=BrAnYW/Fk6J3vlRyYiY3dwqdqIfmjZVxrN8CAAZQ4QmQD1iVytlzqcxsVqnZyFMT1Z VMNBeJbO33Nlb3KvtUzDMrJdF90s+Kd/DWM7DC7bNWhbcry+FRuUkIyfwy9deb/fFuT0 vJqqOfPH0zONvU0McUlz7EE4wbF6yIbvYoG3hljoce9iChlFbBsL5WG2tkPiPRE80YDp wXVEMhuStlThs6hu0DbsK+CmUxNPUTNjIgNIEGXwN9TtQuhUYip7U9sC33wOHXejO7r/ 7XpIadRy75QmNVvOluWv1NzXQaD0hpXRqm0N0p86LPMHtxxANSxYcxRrR6N24A/hWVuo swig==
- In-reply-to: <CAHYJk3R81LhwfwxaDHRSMP0HZmbE7V3hrrn5Q4jGzRzBPRC=oQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <5470C427.4050805@thequod.de> <CAHYJk3S5pBBNnAKqyGRYq7KAstpSAJOPQRdbHjoKrurLKFbOcQ@mail.gmail.com> <5470CF7C.2000707@thequod.de> <CAHYJk3R81LhwfwxaDHRSMP0HZmbE7V3hrrn5Q4jGzRzBPRC=oQ@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22.11.2014 23:20, Mikael Magnusson wrote:
>> Apart from that, I am still wondering why the error in vcs_info causes abortion of the precmd function?!
>
> Passing a non-existing file to $(< is a fatal error, or whichever term
> is correct here.
I got that, but e.g. `false` does not abort the precmd function.
I am using vcs_info like this:
if (( $ZSH_IS_SLOW_DIR )) || ! vcs_info 'prompt'; then
# No vcs_info available, only set cwd
prompt_vcs=""
else
prompt_vcs="${PR_RESET}$vcs_info_msg_0_"
if ! zstyle -t ':vcs_info:*:prompt:*' 'check-for-changes'; then
prompt_vcs+=' ?'
fi
rprompt_extra+=("${vcs_info_msg_1_}")
fi
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iD8DBQFUcgQPfAK/hT/mPgARAii4AJ92A0NFg8Np8qSrNWfO/V9n0xonjwCfbyRS
VIO+Y1tkr0gZ2rm4QyYzELk=
=/FPk
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author