Guest User

Untitled

a guest
Dec 15th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. get_cpu_temperature() {
  2. CEL=$'xc2xb0C'
  3. temp=$( cat /sys/devices/virtual/thermal/thermal_zone0/temp )
  4. temp=`expr $temp / 1000`
  5. echo $temp$CEL
  6. }
  7.  
  8. PS1="$(get_cpu_temperature) u@h:w$ "
Add Comment
Please, Sign In to add comment