diff options
author | Bradley Taunt <bt@btxx.org> | 2024-01-19 09:02:37 -0500 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-01-19 09:02:37 -0500 |
commit | 886271bb3b9a07295ecf7c6c8878fb52bdeff9b4 (patch) | |
tree | 0a970c59d236acc018248edd5ff3eb37442c0602 /posts/macos.md |
Initial commit for cgit platform
Diffstat (limited to 'posts/macos.md')
-rw-r--r-- | posts/macos.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/posts/macos.md b/posts/macos.md new file mode 100644 index 0000000..85f2630 --- /dev/null +++ b/posts/macos.md @@ -0,0 +1,31 @@ +# Running `barf` on MacOS + +2023-01-18 + +The `barf` project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but that doesn't mean MacOS needs to be left out in the cold. + +There are some very minor changes you'll need to make to your default `sed` and `date` paths if you plan to run barf on MacOS. + +## Download Packages + +This walkthrough assumes that you already have [homebrew](https://brew.sh/) installed on your machine. + +You will need to install the GNU versions of both `date` and `sed` in order to avoid breaking things when `barf` tries to build. + + + brew install coreutils + brew install gnu-sed + + +## Setting `gsed` and `gdate` as Default + +Now run the following in a terminal shell: + + sudo ln -fs /opt/homebrew/bin/gsed /usr/local/bin/sed + sudo ln -fs /opt/homebrew/bin/gdate /usr/local/bin/date + +and add the following to your `.bash_profile` file: + + export PATH="/usr/local/bin:$PATH" + +Reload your `bash` instance and everything should work as intended! |