configs  Check-in [4ff1f99931]

Overview
Comment:zshrc: Derive MAKEFLAGS if we have nproc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4ff1f99931bf1f67195952812e2d70131d6944eaec73e5326e6cd5dfd14ef4bb
User & Date: js on 2021-10-30 13:03:11
Other Links: manifest | tags
Context
2021-10-31
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
2021-10-28
18:05
setup.sh: Improve checking for gpg key check-in: 4cecd9d228 user: js tags: trunk
Changes

Modified zshrc from [9f4f589aaf] to [332e22e1f9].

215
216
217
218
219
220
221


222
223
224
225
226
227
228
for ext in 7z lha tar tbz tbz2 tar.bz2 tgz tar.gz txz tar.xz rar zip bz2 gz xz
do
	alias -s "$ext=extr"
done

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



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







>
>







215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
for ext in 7z lha tar tbz tbz2 tar.bz2 tgz tar.gz txz tar.xz rar zip bz2 gz xz
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) $@
			;;