Re: cdgit: cd relative to git workdir root

2013-09-17 Thread Thomas Koch
On Tuesday, September 17, 2013 09:44:48 PM Thomas Koch wrote: Unfortunately the auto completion does not seem to work for me. It just completes the files of the current dir as if it would not see the _gitcd file. Sorry! I had the answer one second later: compinit is called in .zshrc but

Re: cdgit: cd relative to git workdir root

2013-09-16 Thread Adam Spiers
On Mon, Sep 16, 2013 at 09:01:14PM +0200, Thomas Koch wrote: Hi, I frequently have the need to cd back to the root of the current git workdir and created to alias for this: git alias root = rev-parse --show-toplevel shell alias cdgit = cd $(git root) Maybe somebody likes this. I

Re: cdgit: cd relative to git workdir root

2013-09-16 Thread martin f krafft
also sprach Thomas Koch tho...@koch.ro [2013.09.16.2101 +0200]: shell alias cdgit = cd $(git root) I've tried to make this happen many years ago, but I never finished the ZLE widget that did it. The idea was to bind 'tab' to a function that would replace an occurrence of ~g in $LBUFFER with the