From 25243e5ee67d04c6eef271bab2f55553a407a1ac Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 13 Feb 2023 16:37:05 +0100 Subject: [PATCH] git:last-changed: Fix execution in subdir git aliases are executed in the repository root. Fix the output of git-last-changed by first cd-ing into the current working directory. --- .config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index 1424192..d1b4e1d 100644 --- a/.config/git/config +++ b/.config/git/config @@ -27,7 +27,7 @@ filter-repo = !git-filter-repo flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\"" https-and-ssh = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-https-and-ssh\"" - last-changed = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-last-changed\"" + last-changed = "!cd \"$GIT_PREFIX\"; \"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-last-changed\"" make-fork = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-make-fork\"" ssync = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-ssync\"" submodule-rm = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-submodule-rm\""