A Fish script containing the git_open function. This function checks if you’re in a git repository, and, if you are, opens that repository’s page in your web browser. If desired, this script can also be changed in order to add it to the user’s fish configuration, usually located at /home/[USER]/.config/fish/functions
.
Edit git_open.fish
and remove the function call at the end (git_open
). Then, move git_open.fish
into /home/[USER]/.config/fish/functions
. The location of this folder may vary from system to system.