zsh-workers
 help / color / mirror / code / Atom feed
* nvcsformats not working on 5.2
@ 2016-10-04 14:00 Tobias Witt
  2016-10-04 15:08 ` Bart Schaefer
  2016-10-04 19:57 ` Frank Terbeck
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Witt @ 2016-10-04 14:00 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

Hi,

I have noticed an issue on 5.2 which is not present on 5.0. I tested it on macOS Sierra (zsh installed view homebrew) and on Debian 8 (zsh built from source).

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. I do it in a similar way for formats like

zstyle ':vcs_info:*' formats "%S" "${path_color}%r/"

which works without a problem inside a git repository. Outside a git repository (where nvcsformats should be used) $vcs_info_msg_0_ is empty. This has worked (ie $vcs_info_msg_0_ was set to "%~") before and it is still working on that debian machine with zsh from the debian-repository (which is 5.0.7).

Is this new or a known issue?

--
Tobias Witt
Head of Technology

E-Mail: ich@dwgadf.de <mailto:ich@dwgadf.de>
Mobil: +49 (0) 173 - 29 0 98 62
Web: http://www.thisdone.de <http://www.thisdone.de/>

Höft & Witt GbR – Lindenstraße 47 – 40233 Düsseldorf 
Geschäftsführer: Nicolas Höft und Tobias Witt 
Umsatzsteuer-ID: DE277422459


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nvcsformats not working on 5.2
  2016-10-04 14:00 nvcsformats not working on 5.2 Tobias Witt
@ 2016-10-04 15:08 ` Bart Schaefer
  2016-10-04 19:57 ` Frank Terbeck
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2016-10-04 15:08 UTC (permalink / raw)
  To: zsh-workers

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nvcsformats not working on 5.2
  2016-10-04 14:00 nvcsformats not working on 5.2 Tobias Witt
  2016-10-04 15:08 ` Bart Schaefer
@ 2016-10-04 19:57 ` Frank Terbeck
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Terbeck @ 2016-10-04 19:57 UTC (permalink / raw)
  To: Tobias Witt; +Cc: zsh-workers

Hi Tobias,

Tobias Witt wrote:
> I have noticed an issue on 5.2 which is not present on 5.0. I tested
> it on macOS Sierra (zsh installed view homebrew) and on Debian 8 (zsh
> built from source).
>
> 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. I do it in a similar way for
> formats like
>
> zstyle ':vcs_info:*' formats "%S" "${path_color}%r/"
>
> which works without a problem inside a git repository. Outside a git
> repository (where nvcsformats should be used) $vcs_info_msg_0_ is
> empty. This has worked (ie $vcs_info_msg_0_ was set to "%~") before
> and it is still working on that debian machine with zsh from the
> debian-repository (which is 5.0.7).
>
> Is this new or a known issue?

Yup, this is a known issue:

  http://www.zsh.org/mla/workers/2015/msg03258.html

That thread has the fix as well.


Regards, Frank


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-04 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 14:00 nvcsformats not working on 5.2 Tobias Witt
2016-10-04 15:08 ` Bart Schaefer
2016-10-04 19:57 ` Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).