From 950a7352dbf4e5c8041f7c165e32db72456fe3ea Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Wed, 20 Oct 2021 10:17:03 +0800 Subject: [PATCH] support fish shell --- 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 ab29537..0051a56 100644 --- a/conf.d/forgit.plugin.fish +++ b/conf.d/forgit.plugin.fish @@ -12,6 +12,8 @@ function forgit::inside_work_tree git rev-parse --is-inside-work-tree >/dev/null; end +set -x FORGIT_INSTALL_DIR (cd (dirname (dirname (status -f))); and pwd) + set -g forgit_pager "$FORGIT_PAGER" set -g forgit_show_pager "$FORGIT_SHOW_PAGER" set -g forgit_diff_pager "$FORGIT_DIFF_PAGER"