blob: 7309b7ccd4ca48cfe762711958b0deba643d8051 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# shellcheck disable=SC2139
if command -v bear >/dev/null 2>&1; then
_implementations="
remake
make
"
for _implementation in ${_implementations}; do
if command -v "${_implementation}" >/dev/null 2>&1; then
if command -v nproc >/dev/null 2>&1; then
alias m="bear ${_implementation} --jobs=$(($(nproc) + 1))"
else
alias m="bear ${_implementation}"
fi
alias mc="${_implementation} clean"
break
fi
done
unset _implementation _implementations
fi
|