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:
parent
e028cf5c90
commit
02b86416ec
1 changed files with 1 additions and 0 deletions
|
@ -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]//,/.}
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue