Skip to content

Commit

Permalink
macOS parity
Browse files Browse the repository at this point in the history
 * remove `make` hack
 * migrate paths to latest homebrew defaults
  • Loading branch information
avindra committed Apr 16, 2024
1 parent d050598 commit 56373ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .exports
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/sh

# this file is a cross-compatible list of
# exports for fish and bash. since most
# shells need to be supported, a very limited
Expand Down
2 changes: 1 addition & 1 deletion .local/bin/diff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/usr/bin/env sh
###
## Super diff
## 1. `diff` by itself shows a diff of cached
Expand Down
15 changes: 10 additions & 5 deletions .settings
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ USER_PATHS="$P0:$P1:$P2:$P5:$P6:$P7:$P8"
os=$(uname -s)
if [[ "$os" == "Darwin" ]]; then
# Prefer brew python over system python
#USER_PATHS="/usr/local/opt/python/libexec/bin:$USER_PATHS"
#USER_PATHS="/opt/homebrew/opt/python/libexec/bin:$USER_PATHS"

# Xcode make never works and is not available in 11.1 beta
USER_PATHS="/usr/local/opt/make/libexec/gnubin:$USER_PATHS"
# Prefer GNU feature set to BSD ones
USER_PATHS="/usr/local/opt/coreutils/libexec/gnubin:$USER_PATHS"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
USER_PATHS="/opt/homebrew/opt/coreutils/libexec/gnubin/:$USER_PATHS"

# Homebrew
USER_PATHS="/opt/homebrew/bin:$USER_PATHS"

# Mirror Linux PATH
USER_PATHS="$HOME/.local/bin:$USER_PATHS"

export MANPATH="/opt/homebrew/opt/coreutils/libexec/gnuman:$MANPATH"
fi

## inject additional dirs
Expand Down

0 comments on commit 56373ca

Please sign in to comment.