wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Fix bug where homebrew replacement wouldn't work #379

Closed cjappl closed 3 months ago

cjappl commented 3 months ago

Check list

Description

In our homebrew formula, we were replacing this line in the installation:

 Replace this:             'set -x FORGIT "$FORGIT_INSTALL_DIR/bin/git-forgit"',
  with this     :             "set -x FORGIT \"#{opt_prefix}/bin/git-forgit\""

However, later in the fish script, we ignored that, just basing it directly off of the install dir:

alias git-forgit "$FORGIT_INSTALL_DIR/bin/git-forgit"

This makes sure that we always line up and don't have `fish: Unknown command: /opt/homebrew/share/conf.d/bin/git-forgit

Fixes #377

Type of change

Test environment