Skip to content

Commit

Permalink
install: add fish post install instructions
Browse files Browse the repository at this point in the history
This adds the correct config file for the fish shell needed to load
the brew environment. Fish ends up using the `~/.config/fish/config.fish`
file during startup to load environment variables and scripts most
of the time. This is also used by asdf and ghcup for instance.

This was brought up in discussion here:
- https://github.com/orgs/Homebrew/discussions/4412

More info:
- https://fishshell.com/docs/current/index.html#configuration
  • Loading branch information
apainintheneck committed Oct 22, 2023
1 parent 35c4946 commit b479c7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ case "${SHELL}" in
shell_rcfile="${ZDOTDIR:-"${HOME}"}/.zprofile"
fi
;;
*/fish*)
shell_rcfile="${HOME}/.config/fish/config.fish"
;;
*)
shell_rcfile="${ENV:-"${HOME}/.profile"}"
;;
Expand Down

0 comments on commit b479c7a

Please sign in to comment.