Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6e90f02988
|
|||
|
08d7bc42da
|
|||
|
c8073faa88
|
@@ -2,6 +2,7 @@
|
|||||||
#+author: Lucien Cartier-Tilet
|
#+author: Lucien Cartier-Tilet
|
||||||
#+email: lucien@phundrak.com
|
#+email: lucien@phundrak.com
|
||||||
[[https://melpa.org/#/eshell-info-banner][file:https://melpa.org/packages/eshell-info-banner-badge.svg]]
|
[[https://melpa.org/#/eshell-info-banner][file:https://melpa.org/packages/eshell-info-banner-badge.svg]]
|
||||||
|
[[https://stable.melpa.org/#/eshell-info-banner][file:https://stable.melpa.org/packages/eshell-info-banner-badge.svg]]
|
||||||
|
|
||||||
* Introduction
|
* Introduction
|
||||||
~eshell-info-banner.el~ is a utility for creating an informative banner,
|
~eshell-info-banner.el~ is a utility for creating an informative banner,
|
||||||
@@ -33,8 +34,8 @@ macOS. PR are welcome if you want to fix that!
|
|||||||
** ~0.7.0~
|
** ~0.7.0~
|
||||||
Version ~0.7.0~ renames several functions to conform with the Elisp
|
Version ~0.7.0~ renames several functions to conform with the Elisp
|
||||||
Coding Conventions.
|
Coding Conventions.
|
||||||
| Old Name | New Name |
|
| Old Name | New Name |
|
||||||
|------------------------------------------------------+------------------------------------------------------|
|
|----------------------------------------------------+----------------------------------------------------|
|
||||||
| ~eshell-info-banner--ge-mounted-partitions/duf~ | ~eshell-info-banner--ge-mounted-partitions-duf~ |
|
| ~eshell-info-banner--ge-mounted-partitions/duf~ | ~eshell-info-banner--ge-mounted-partitions-duf~ |
|
||||||
| ~eshell-info-banner--get-mounted-partitions/df~ | ~eshell-info-banner--get-mounted-partitions-df~ |
|
| ~eshell-info-banner--get-mounted-partitions/df~ | ~eshell-info-banner--get-mounted-partitions-df~ |
|
||||||
| ~eshell-info-banner--get-mounted-partitions/windows~ | ~eshell-info-banner--get-mounted-partitions-windows~ |
|
| ~eshell-info-banner--get-mounted-partitions/windows~ | ~eshell-info-banner--get-mounted-partitions-windows~ |
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
|
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
|
||||||
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
|
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
|
||||||
;; Version: 0.7.4
|
;; Version: 0.7.5
|
||||||
;; Package-Requires: ((emacs "25.1") (f "0.20") (s "1"))
|
;; Package-Requires: ((emacs "25.1") (f "0.20") (s "1"))
|
||||||
;; Homepage: https://labs.phundrak.com/phundrak/eshell-info-banner.el
|
;; Homepage: https://github.com/Phundrak/eshell-info-banner.el
|
||||||
|
|
||||||
;; This file is not part of GNU Emacs
|
;; This file is not part of GNU Emacs
|
||||||
|
|
||||||
@@ -627,6 +627,20 @@ If RELEASE-FILE is nil, use '/etc/os-release'."
|
|||||||
"See `eshell-info-banner--get-os-information'."
|
"See `eshell-info-banner--get-os-information'."
|
||||||
(let ((prefix (if eshell-info-banner-tramp-aware (file-remote-p default-directory) "")))
|
(let ((prefix (if eshell-info-banner-tramp-aware (file-remote-p default-directory) "")))
|
||||||
`(,(cond
|
`(,(cond
|
||||||
|
;; Bedrock Linux
|
||||||
|
((file-exists-p (concat prefix "/bedrock/etc/bedrock-release"))
|
||||||
|
(s-trim (with-temp-buffer
|
||||||
|
(insert-file-contents (concat prefix "/bedrock/etc/bedrock-release"))
|
||||||
|
(buffer-string))))
|
||||||
|
;; Proxmox
|
||||||
|
((executable-find "pveversion" eshell-info-banner-tramp-aware)
|
||||||
|
(let ((distro (eshell-info-banner--shell-command-to-string "pveversion")))
|
||||||
|
(save-match-data
|
||||||
|
(string-match "/\\([^/]+\\)/" distro)
|
||||||
|
(concat "Proxmox "
|
||||||
|
(substring-no-properties distro
|
||||||
|
(match-beginning 1)
|
||||||
|
(match-end 1))))))
|
||||||
((executable-find "hostnamectl" eshell-info-banner-tramp-aware)
|
((executable-find "hostnamectl" eshell-info-banner-tramp-aware)
|
||||||
(eshell-info-banner--get-os-information-from-hostnamectl))
|
(eshell-info-banner--get-os-information-from-hostnamectl))
|
||||||
((executable-find "lsb_release" eshell-info-banner-tramp-aware)
|
((executable-find "lsb_release" eshell-info-banner-tramp-aware)
|
||||||
|
|||||||
Reference in New Issue
Block a user