fn cputemp { if(test -f /sys/devices/platform/coretemp.0/temp1_input) echo -n `{cat /sys/devices/platform/coretemp.[01]/temp1_input | sed 's/...$/C/g' | tr ' ' ' '} if(test -f /proc/acpi/thermal_zone/THM/temperature) echo -n 'cpu: '`{cat /proc/acpi/thermal_zone/THM/temperature | sed 's/[^0-9]//g' |tr ' ' ' '} } mkrbar cputemp &