mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS

Home Page:https://mths.be/dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No default names for gnu-sed

PaulRBerg opened this issue · comments

It seems that gnu-sed doesn't have the --with-default-names parameter anymore.

Environment

  • osx mojave 10.14.2
  • homebrew 2.0.5

I’ve got a fix for this in my fork; lemme get a PR opened to handle this & #870, amongst other things that have changed in Homebrew recently.

Can we use something like this ?

$ brew install gnu-sed
$ export PATH=$PATH:~$(brew --prefix gnu-sed)/libexec/gnubin
$ echo 'export PATH=$PATH:$(brew --prefix gnu-sed)/libexec/gnubin' >> ~/.zshrc

@pnodet one could! However, I’d like to stay away from messing with folks’ $PATH, that’s a pretty personal thing.

Okay no worries, just thought it might be easier to make it default. (because... laziness you know)

I mean, for sure, I hear you! While it would replicate the existing functionality, I think it would be surprising to folks, and I tend to follow the principle of least surprise 😃