Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: nvcsformats not working on 5.2
- X-seq: zsh-workers 39557
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: nvcsformats not working on 5.2
- Date: Tue, 4 Oct 2016 08:08:01 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=WhglT6s1SQ7mLhcz8tnMJYaH58GwrEbEyndTjgh7x94=; b=LJNca7H6MnCsm+rr5UkpLilE3PP2GsPrxWbGPebp48hD/om2YGe/w51HgK1+ImuvCU bBhziLfW5xpFD2a27eafEdG2/2GKLmX+ISR7642vYqDp4+oSzfSfphBwbyYlt1XVQx+c hr8z4Ck9uKMB4w9RyzfNBErXJDPTP5pD9UrzNLJdOrl5F5lfaLjopvtq8JKdojdw3fnj u2asIa1dsRO3VrXfPhS5kuBj66btxnoDFErUBcsT3WgB8Y8vHIVnmRnY5gzgHm2H/v7u r3qB4YlJQnCRlA+vsimL0dzwZgIOq/daJrj2ZEidntJpRTT63g3SXshgYsv3MqBR+FxT /DXA==
- In-reply-to: <7F71078B-4007-42F2-82AE-E404059C2A99@hhu.de>
- 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: <7F71078B-4007-42F2-82AE-E404059C2A99@hhu.de>
On Oct 4, 4:00pm, Tobias Witt wrote:
}
} The problem is with the vcs_info module. I set nvcsformats like
}
} zstyle ':vcs_info:*' nvcsformats "%~" ""
}
} which should make $vcs_info_msg_0_ return the current working
} directory after vcs_info is called.
This is working for me in current zsh revision pulled from git:
torch% setopt prompt_subst
torch% add-zsh-hook precmd vcs_info
torch% zstyle ':vcs_info:*' nvcsformats "%~" ""
torch% PS1='[%n] ${vcs_info_msg_0_}%# '
[schaefer] ~% cd zsh-5.0
[schaefer] (cvs)-[zsh/zsh-5.0]-% cd /tmp
[schaefer] /tmp%
I didn't try on MacOS, though.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author