diff --git a/README.md b/README.md index b7caae3..1418540 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ #### git-refresh + +This is a fork of avimehenwal/git-refresh, which fixes an issue with the 'find' command when run on MacOS with the latest fish (V3.5.1). + > A plugin for [Oh My Fish][omf-link]. [![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE) [![Fish Shell Version](https://img.shields.io/badge/fish-v2.2.0-007EC7.svg?style=flat-square)](https://fishshell.com) -[![Oh My Fish Framework](https://img.shields.io/badge/Oh%20My%20Fish-Framework-007EC7.svg?style=flat-square)](https://www.github.com/oh-my-fish/oh-my-fish) + +- NOTE: See Install for installation method via fisher. This version is NOT available directly via OMF.
@@ -38,7 +42,7 @@ Hail Automation! :) ## Install ```fish -$ omf install git-refresh +$ fisher install PJC-64/git-refresh ``` diff --git a/init.fish b/init.fish index 8dbde51..61c3659 100644 --- a/init.fish +++ b/init.fish @@ -7,9 +7,9 @@ function git-refresh --on-variable PWD \ --description "git pull automatically wherever inside a git repository" - set --local hasGit (find ./ -maxdepth 1 -type d -name .git -print) + set --local hasGit (find . -maxdepth 1 -type d -name .git -print) if test "$hasGit" = "./.git" echo -e "\e[1m(git-refresh) - GIT repo detected\e[0m" git pull --all --verbose end -end \ No newline at end of file +end