configs  Check-in [eea6758068]

Overview
Comment:zshrc: Don't assume sysctl is in PATH
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: eea675806851c864c99c664a7c46bcfcb22f4c129619b3f09ccfe3dbe60ed7db
User & Date: js 2022-12-22 02:25:03
Context
2022-12-22
04:47
xinitrc: Remove debug line check-in: 72f4cc98f7 user: js tags: trunk
02:25
zshrc: Don't assume sysctl is in PATH check-in: eea6758068 user: js tags: trunk
00:35
vimrc: Restore compatibility with Vim 7 check-in: ee8d8f37b0 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to zshrc.

220
221
222
223
224
225
226
227
228
229
230
231
232
233
234

__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 [ "$(uname -s)" = "NetBSD" ]; then
	export MAKEFLAGS="-j$(($(sysctl -n hw.ncpu) * 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.







|







220
221
222
223
224
225
226
227
228
229
230
231
232
233
234

__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 [ "$(uname -s)" = "NetBSD" ]; then
	export MAKEFLAGS="-j$(($(/sbin/sysctl -n hw.ncpu) * 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.