Skip to content

Instantly share code, notes, and snippets.

@jeyaramashok
Created October 7, 2023 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeyaramashok/a15ac3923253811a7c9ee04cf855d269 to your computer and use it in GitHub Desktop.
Save jeyaramashok/a15ac3923253811a7c9ee04cf855d269 to your computer and use it in GitHub Desktop.
Install GNU Core utils on macos

Replace macos terminal utilties with GNU Core utilities

These instructions are specific to fish shell ( Pls see references for bash)

  1. Install coreutils using homebrew
brew install coreutils
  1. Edit the fish config (~/.config/fish/config.fish) and add the below line
set -gx PATH /opt/homebrew/opt/coreutils/libexec/gnubin $PATH              # Add GNU utilities to PATH
  1. Verify Changes
$ which date
/opt/homebrew/opt/coreutils/libexec/gnubin/date

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment