configs  Diff

Differences From Artifact [332e22e1f9]:

To Artifact [a1345d5431]:


216
217
218
219
220
221
222



223

224
225
226
227
228
229
230
do
	alias -s "$ext=extr"
done

__has_command vim && alias vi=vim
__has_command gpg2 && alias gpg=gpg2




__has_command nproc && export MAKEFLAGS="-j$(($(nproc) * 2))"


make() {
	case "$PWD" in
		# pkgsrc needs bmake and does not like MAKEFLAGS including -j.
		*/pkgsrc*)
			MAKEFLAGS= =$(__find_command bmake make) $@
			;;







>
>
>
|
>







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) $@
			;;