Overview
Comment: | zshrc: Derive MAKEFLAGS on macOS |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b29f66697615806fa163acb5cccb12ab |
User & Date: | js 2021-10-31 15:11:16 |
Original Comment: | Derive MAKEFLAGS on macOS |
Context
2021-10-31
| ||
16:09 | vim/syntax/objc.vim: Add OFNotificationName check-in: 590f2da605 user: js tags: trunk | |
15:11 | zshrc: Derive MAKEFLAGS on macOS check-in: b29f666976 user: js tags: trunk | |
2021-10-30
| ||
13:03 | zshrc: Derive MAKEFLAGS if we have nproc check-in: 4ff1f99931 user: js tags: trunk | |
Changes
Changes to zshrc.
︙ | ︙ | |||
216 217 218 219 220 221 222 | do alias -s "$ext=extr" done __has_command vim && alias vi=vim __has_command gpg2 && alias gpg=gpg2 | > > > | > | 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | do alias -s "$ext=extr" done __has_command vim && alias vi=vim __has_command gpg2 && alias gpg=gpg2 if [ "$(uname -s)" = "Darwin" ]; then export MAKEFLAGS="-j$(($(sysctl -n machdep.cpu.thread_count) * 2))" elif __has_command nproc; then export MAKEFLAGS="-j$(($(nproc) * 2))" fi make() { case "$PWD" in # pkgsrc needs bmake and does not like MAKEFLAGS including -j. */pkgsrc*) MAKEFLAGS= =$(__find_command bmake make) $@ ;; |
︙ | ︙ |