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

Does not work on MacOS #24

Closed
edosrecki opened this issue Dec 31, 2023 · 3 comments · Fixed by #25
Closed

Does not work on MacOS #24

edosrecki opened this issue Dec 31, 2023 · 3 comments · Fixed by #25

Comments

@edosrecki
Copy link
Contributor

Versions

fzf-help: 2.1.0
MacOS: 14.2.1

Errors

grep: invalid option -- P

usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]
mktemp: option requires an argument -- t

usage: mktemp [-d] [-p tmpdir] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-p tmpdir] [-q] [-u] -t prefix
@BartSte
Copy link
Owner

BartSte commented Dec 31, 2023

Thanks. Only tested in on Linux. Maybe I'll test on MacOs in the future as wel.

@edosrecki
Copy link
Contributor Author

@BartSte

For now I locally fixed it for myself by doing the following:

  1. Install GNU versions of mktemp and grep. These get installed prefixed with letter g: gmktemp and ggrep:
brew install coreutils
brew install grep
  1. Replace grep with ggrep, and mktemp with gmktemp in local installation of fzf-help.

@edosrecki
Copy link
Contributor Author

@BartSte I created a PR: #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants