|
200 | 200 | mkdir -p ~/Library/Caches/Homebrew/Formula |
201 | 201 | brew doctor |
202 | 202 |
|
| 203 | +# Add GNU utilities to PATH once in .shellpaths |
| 204 | +shellpaths_file="./homedir/.shellpaths" |
| 205 | + |
| 206 | +# Determine Homebrew prefix once using brew |
| 207 | +brew_prefix="$(brew --prefix)" |
| 208 | + |
| 209 | +# Append gnubin directories for GNU utilities if missing |
| 210 | +coreutils_path="$brew_prefix/opt/coreutils/libexec/gnubin" |
| 211 | +sed_path="$brew_prefix/opt/gnu-sed/libexec/gnubin" |
| 212 | +grep_path="$brew_prefix/opt/grep/libexec/gnubin" |
| 213 | + |
| 214 | +if ! grep -qs "$coreutils_path" "$shellpaths_file"; then |
| 215 | + echo "export PATH=\"$coreutils_path:\$PATH\"" >> "$shellpaths_file" |
| 216 | +fi |
| 217 | +if ! grep -qs "$sed_path" "$shellpaths_file"; then |
| 218 | + echo "export PATH=\"$sed_path:\$PATH\"" >> "$shellpaths_file" |
| 219 | +fi |
| 220 | +if ! grep -qs "$grep_path" "$shellpaths_file"; then |
| 221 | + echo "export PATH=\"$grep_path:\$PATH\"" >> "$shellpaths_file" |
| 222 | +fi |
| 223 | + |
203 | 224 | # skip those GUI clients, git command-line all the way |
204 | 225 | # git is now included with macos terminal |
205 | 226 | #require_brew git |
@@ -1073,15 +1094,15 @@ defaults write com.apple.messageshelper.MessageController SOInputLineSettings -d |
1073 | 1094 | # running "Disable continuous spell checking" |
1074 | 1095 | # defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "continuousSpellCheckingEnabled" -bool false;ok |
1075 | 1096 |
|
1076 | | -############################################################################### |
1077 | | -bot "SizeUp.app" |
1078 | | -############################################################################### |
| 1097 | +# ############################################################################### |
| 1098 | +# bot "SizeUp.app" |
| 1099 | +# ############################################################################### |
1079 | 1100 |
|
1080 | | -running "Start SizeUp at login" |
1081 | | -defaults write com.irradiatedsoftware.SizeUp StartAtLogin -bool true;ok |
| 1101 | +# running "Start SizeUp at login" |
| 1102 | +# defaults write com.irradiatedsoftware.SizeUp StartAtLogin -bool true;ok |
1082 | 1103 |
|
1083 | | -running "Don't show the preferences window on next start" |
1084 | | -defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false;ok |
| 1104 | +# running "Don't show the preferences window on next start" |
| 1105 | +# defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false;ok |
1085 | 1106 |
|
1086 | 1107 | killall cfprefsd |
1087 | 1108 |
|
|
0 commit comments