1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 21:41:57 +00:00

don't read /proc/loadavg if it's unreadable

This commit is contained in:
romkatv 2019-06-06 11:52:17 +02:00
parent e028cf5c90
commit 02b86416ec

View file

@ -1018,6 +1018,7 @@ prompt_load() {
load=${${(A)=load}[bucket+1]//,/.}
;;
*)
[[ -r /proc/loadavg ]] || return
_p9k_read_file /proc/loadavg || return
load=${${(A)=_P9K_RETVAL}[bucket]//,/.}
;;