git: Fix working directory of shell aliases
In git aliases, shell commands are executed from the top-level directory of the repo. Because of this, something like `git glog -- file` didn't work in subdirectories. Fix this by creating a wrapper script that first changes into $GIT_PREFIX before executing the script. Since (currently) the only use-case is to launch the functions in `autoload/git/`, most of the path could move into the script, making the git config a lot cleaner.
This commit is contained in:
1
.local/bin/git-zsh-autoload
Symbolic link
1
.local/bin/git-zsh-autoload
Symbolic link
@@ -0,0 +1 @@
|
||||
../../.config/git/zsh-autoload.sh
|
||||
Reference in New Issue
Block a user