6788feba34
This uses a rudimentary CPU speed check at launch to gate larger cache sizes. (This is on the theory that older systems or those with weaker CPUs will struggle to walk the cache.)
26 lines
530 B
Tcsh
26 lines
530 B
Tcsh
_debug "Sourcing tcshrc.system.FreeBSD..."
|
|
|
|
set cshenv_sort_can_shuffle
|
|
|
|
set cshenv_speed_estimate=( `sysctl dev.cpu.0.freq` )
|
|
set cshenv_speed_estimate="${cshenv_speed_estimate[2]}"
|
|
|
|
if( ${cshenv_speed_estimate} > 400 ) then
|
|
set cshenv_gitdir_cache_size=256
|
|
endif
|
|
|
|
# Set the acknowledgement bit, essentially
|
|
setenv CSHENV_SYSTEM_CONFIGURED FreeBSD
|
|
|
|
setenv LESS -erF
|
|
setenv PAGER less
|
|
|
|
alias printf gprintf
|
|
|
|
_debug "Done sourcing tcshrc.system.FreeBSD..."
|
|
|
|
###########################
|
|
# vim: ft=tcsh
|
|
###########################
|
|
|