From ed5174668780d4477bd476943030d0b677ea1f95 Mon Sep 17 00:00:00 2001 From: Peter Tri Ho Date: Tue, 26 Oct 2021 13:32:05 +1100 Subject: [PATCH] fix: restore setting `FORGIT_INSTALL_DIR` in `fish` #165 --- conf.d/forgit.plugin.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.d/forgit.plugin.fish b/conf.d/forgit.plugin.fish index 1129619..18b7f60 100644 --- a/conf.d/forgit.plugin.fish +++ b/conf.d/forgit.plugin.fish @@ -18,6 +18,8 @@ set -g forgit_diff_pager "$FORGIT_DIFF_PAGER" set -g forgit_ignore_pager "$FORGIT_IGNORE_PAGER" set -g forgit_log_format "$FORGIT_LOG_FORMAT" +set -x FORGIT_INSTALL_DIR (dirname (dirname (status -f))) + test -z "$forgit_pager"; and set -g forgit_pager (git config core.pager || echo 'cat') test -z "$forgit_show_pager"; and set -g forgit_show_pager (git config pager.show || echo "$forgit_pager") test -z "$forgit_diff_pager"; and set -g forgit_diff_pager (git config pager.diff || echo "$forgit_pager")