shrc: provide an alias for number of CPUs online

This commit is contained in:
Lucas Gabriel Vuotto 2024-07-17 20:59:47 +00:00
parent 64b3fd9ca2
commit 6ad9f693d5

View File

@ -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