Skip to content

Commit ab7400d

Browse files
authored
README: Add more explicit instructions for brew, fix headers for AUR, Fig (#339)
Added more explicit instructions, now that I know how our brew installation process works. While I was there, I moved AUR and Fig to be subheaders of Installation
1 parent c663dc1 commit ab7400d

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,41 @@ zinit load wfxr/forgit
5353
# for oh-my-zsh
5454
git clone https://github.com/wfxr/forgit.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/forgit
5555

56-
# for brew
57-
brew install forgit
58-
5956
# manually
6057
# Clone the repository and source it in your shell's rc file or put bin/git-forgit into your $PATH
6158
```
6259

63-
# Fig
60+
## Homebrew
61+
62+
To install using brew
63+
```sh
64+
brew install forgit
65+
```
66+
67+
Then add the following to your shell's config file:
68+
```sh
69+
# Fish:
70+
# ~/.config/fish/config.fish:
71+
[ -f $HOMEBREW_PREFIX/share/forgit/forgit.plugin.fish ]; and source $HOMEBREW_PREFIX/share/forgit/forgit.plugin.fish
72+
73+
# Zsh:
74+
# ~/.zshrc:
75+
[ -f $HOMEBREW_PREFIX/share/forgit/forgit.plugin.zsh ] && source $HOMEBREW_PREFIX/share/forgit/forgit.plugin.zsh
76+
77+
# Bash:
78+
# ~/.bashrc:
79+
[ -f $HOMEBREW_PREFIX/share/forgit/forgit.plugin.sh ] && source $HOMEBREW_PREFIX/share/forgit/forgit.plugin.sh
80+
```
81+
82+
## Fig
6483

6584
[Fig](https://fig.io) adds apps, shortcuts, and autocomplete to your existing terminal.
6685

6786
Install `forgit` in just one click.
6887

6988
[![Install with Fig](https://fig.io/badges/install-with-fig.svg)](https://fig.io/plugins/other/forgit)
7089

71-
# Arch User Repository
90+
## Arch User Repository
7291

7392
[AUR](https://wiki.archlinux.org/title/Arch_User_Repository) packages, maintained by the developers of forgit, are available. Install the [forgit](https://aur.archlinux.org/packages/forgit) package for the latest release or [forgit-git](https://aur.archlinux.org/packages/forgit-git) to stay up to date with the latest commits from the master branch of this repository.
7493

0 commit comments

Comments
 (0)