Skip to content

Commit 99cda32

Browse files
authored
Restore support for appending FORGIT_INSTALL_DIR to path (#308)
It seems somewhere along the line FORGIT_INSTALL_DIR stopped getting exported. According to the README you can append it to your path to get access to git forgit ... commands however this seems to no longer work - this is an attempt to restore this functionality.
1 parent f73ae97 commit 99cda32

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

conf.d/forgit.plugin.fish

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# MIT (c) Chris Apple
22

33
set INSTALL_DIR (dirname (dirname (status -f)))
4-
set FORGIT "$INSTALL_DIR/conf.d/bin/git-forgit"
4+
set -x FORGIT_INSTALL_DIR "$INSTALL_DIR/conf.d"
5+
set -x FORGIT "$FORGIT_INSTALL_DIR/bin/git-forgit"
56
if [ ! -e "$FORGIT" ]
6-
set FORGIT "$INSTALL_DIR/vendor_conf.d/bin/git-forgit"
7+
set -x FORGIT_INSTALL_DIR "$INSTALL_DIR/vendor_conf.d"
8+
set -x FORGIT "$FORGIT_INSTALL_DIR/bin/git-forgit"
79
end
810

911
function forgit::warn

forgit.plugin.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ forgit::ignore::clean() {
130130
"$FORGIT" ignore_clean "$@"
131131
}
132132

133+
export FORGIT_INSTALL_DIR=$INSTALL_DIR
134+
133135
# register aliases
134136
# shellcheck disable=SC2139
135137
if [[ -z "$FORGIT_NO_ALIASES" ]]; then

0 commit comments

Comments
 (0)