Skip to content

Commit

Permalink
Restore support for appending FORGIT_INSTALL_DIR to path (#308)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tapayne88 committed May 16, 2023
1 parent f73ae97 commit 99cda32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conf.d/forgit.plugin.fish
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# MIT (c) Chris Apple

set INSTALL_DIR (dirname (dirname (status -f)))
set FORGIT "$INSTALL_DIR/conf.d/bin/git-forgit"
set -x FORGIT_INSTALL_DIR "$INSTALL_DIR/conf.d"
set -x FORGIT "$FORGIT_INSTALL_DIR/bin/git-forgit"
if [ ! -e "$FORGIT" ]
set FORGIT "$INSTALL_DIR/vendor_conf.d/bin/git-forgit"
set -x FORGIT_INSTALL_DIR "$INSTALL_DIR/vendor_conf.d"
set -x FORGIT "$FORGIT_INSTALL_DIR/bin/git-forgit"
end

function forgit::warn
Expand Down
2 changes: 2 additions & 0 deletions forgit.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ forgit::ignore::clean() {
"$FORGIT" ignore_clean "$@"
}

export FORGIT_INSTALL_DIR=$INSTALL_DIR

# register aliases
# shellcheck disable=SC2139
if [[ -z "$FORGIT_NO_ALIASES" ]]; then
Expand Down

0 comments on commit 99cda32

Please sign in to comment.