shrc: provide an alias for number of CPUs online
This commit is contained in:
parent
64b3fd9ca2
commit
6ad9f693d5
@ -40,6 +40,10 @@ if [ -d ~/local/libdata/perl5/site_perl ]; then
|
||||
export PERL5LIB
|
||||
fi
|
||||
|
||||
if [ -x /sbin/sysctl ] && /sbin/sysctl -n hw.ncpuonline >/dev/null 2>&1; then
|
||||
alias ncpu="/sbin/sysctl -n hw.ncpuonline"
|
||||
fi
|
||||
|
||||
PS1=
|
||||
|
||||
case $SHELL in
|
||||
|
Loading…
Reference in New Issue
Block a user