using bash as default shell

Richard Hartmann richih.mailinglist at gmail.com
Mon Feb 20 12:54:52 CET 2012


On Sun, Feb 19, 2012 at 22:13, Zoho Vignochi <zoho.vignochi at gmail.com> wrote:

> Can
> anyone help steer me in the proper direction?

I suspect you need to edit $PS1 , as the information is static for the
duration of your session within a vcsh repo, this should be relatively
easy.

My setup works[1] and looks as follows:

richih at adamantium  ~ % vcsh enter zsh
richih at adamantium [zsh] [2] (git)-[master] ~ % set | grep -a VCSH
VCSH_COMMAND=enter
VCSH_DIRECTORY=zsh
VCSH_REPO_NAME=zsh
richih at adamantium [zsh] [2] (git)-[master] ~ %

As you can see, I simply add $VCSH_REPO_NAME to my prompt and that's that.


Richard

[1] https://github.com/RichiH/zshrc/blob/0d153f4ad1981751e57ae612ef02e74fdf94cf74/.zsh/functions/buildPS1#L15


More information about the vcs-home mailing list