also sprach Thomas Koch [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 output
of rev-
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 th
Hi,
I have the same need, and thanks for the aliases, now I can do it :).
>
> Now it would be cool, to have an alias to cd into a specific subdir of the
> git
> worktree and have zsh (or bash) auto completion for this like
>
> git clone git://git.kernel.org/pub/scm/git/git.git
> cd git/gitweb/
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.
Now it would be cool, to have an alias to cd into a specific subdir of the g