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

Replace external tools with fish builtins #1

Merged
merged 2 commits into from
Jun 26, 2021

Conversation

igor-kupczynski
Copy link
Owner

Port of fishgretel#23 to my fork

Fix issue fishgretel#22
Fix issue fishgretel#21

Replace use of external tools (grep and perl) with fish builtin string.
If the 'exit' command was part of the command line, then fish would
give a warning and not exit due to how the fasd command was running
in the background.

Adding a disown after it will stop it from throwing this error.

Fix small issue with printf formatting in __fasd_expand_vars
@igor-kupczynski
Copy link
Owner Author

Currently, on macos, if you don't have the gnu coreutils as the default the plugin fails with:

usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-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 ...]

The reason is that grep -P is supported on the macos grep.

@igor-kupczynski igor-kupczynski merged commit 90afd8b into igor-kupczynski:master Jun 26, 2021
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 this pull request may close these issues.

2 participants