Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Replaced 'find ./' with 'find .' to fix for MacOS #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<img src="https://cdn.rawgit.com/oh-my-fish/oh-my-fish/e4f1c2e0219a17e2c748b824004c8d0b38055c16/docs/logo.svg" align="left" width="144px" height="144px"/>

#### 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.

<br/>

Expand Down Expand Up @@ -38,7 +42,7 @@ Hail Automation! :)
## Install

```fish
$ omf install git-refresh
$ fisher install PJC-64/git-refresh
```


Expand Down
4 changes: 2 additions & 2 deletions init.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
end