Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Provide an implementation for zsh #3

Open
agross opened this issue Mar 20, 2010 · 8 comments
Open

Provide an implementation for zsh #3

agross opened this issue Mar 20, 2010 · 8 comments

Comments

@agross
Copy link

agross commented Mar 20, 2010

I'm leaning towards zsh recently and understand that git-sh does not work out of the box in that shell. I love git-sh's features in Bash that I would like to see a port for zsh.

(NB: For the most pat, I'm a shell noob, so if there's any easy way to make git-sh work in zsh please let me know!)

@rtomayko
Copy link
Owner

That would be awesome. I haven't tried zsh myself but I hear it's amazing. From what I understand, zsh is mostly compatible with bash. Surely the POSIX shell aspects would work in both. I imagine it wouldn't be that hard to support both in git-sh.bash.

The big challenge here is probably going to be the bash-completion sources. It's a massive bit of bash that problem won't run in zsh. It might be necessary to use a completion lib that's built for zsh, which may or may not exist.

Anyway, I love the idea. Not sure I'll be able to work on it anytime soon unless I happen to try zsh and have to have it.

@agross
Copy link
Author

agross commented Mar 20, 2010

As far as I understand the completion support in zsh is superior to what Bash provides. (Like showing a list of options in a menu with help text.) So it might be the case that extending zsh completion is also relatively easy.

@kdar
Copy link

kdar commented Jun 15, 2010

I don't even use the completion in git-sh, just mainly the prompt. So even getting the prompt to function in zsh would be a major bonus for me.

@agross
Copy link
Author

agross commented Jun 15, 2010

I've managed to make git-sh available in zsh. For the prompt I use zsh's builtin functionality which is quite impressive that it tries to minimize calls to git rev-parse etc. depending on your location inside the Git repo.

Let me know if it helps to put up a file for download containing my zsh customizations.

@kdar
Copy link

kdar commented Jun 15, 2010

Yes, please put it up somewhere. I would really appreciate it.

@agross
Copy link
Author

agross commented Jun 15, 2010

http://therightstuff.de/download/zsh-git-sh.zip

I put that in my Cygwin home directory.

@Daenyth
Copy link
Contributor

Daenyth commented Aug 13, 2012

Is there an up to date zsh fork of this? I'm considering switching over but this is my primary shell environment.

@blueyed
Copy link

blueyed commented Feb 25, 2014

@agross
It would be nice, if you could provide your customizations as a pull request and/or fork.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants