Simpler way of getting the kernel name

This commit is contained in:
Lucien Cartier-Tilet 2021-05-22 00:31:11 +02:00
parent 964d4bfe4c
commit be0c8859d6
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 1 additions and 3 deletions

View File

@ -542,9 +542,7 @@ If RELEASE-FILE is nil, use '/etc/os-release'."
(or (file-remote-p default-directory 'host) (system-name))
(system-name)))
(uptime (eshell-info-banner--get-uptime))
(kernel (concat (s-trim (shell-command-to-string "uname -s"))
" "
(s-trim (shell-command-to-string "uname -r"))))
(kernel (s-trim (shell-command-to-string "uname -sr")))
(partitions (eshell-info-banner--get-mounted-partitions))
(left-padding (eshell-info-banner--get-longest-path partitions))
(left-text (max (length os)