Squashed commit of the following:
commit e11e3cbbd04c9c693d6e48f72e9ea99b64a83556
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 18:34:09 2021 +0100
Multiply by 2014 to go from Kilobytes to Bytes
commit 786c9bbfdfd8a1fc6d6b21ea92ac8252b9dd0a50
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 18:23:21 2021 +0100
Read in /proc/meminfo to get used/available memory
Apparently NetBSD doesn’t properly implement hw.usermem.
Also it needs to read hw.physmem64 instead of hw.physmem with sysctl
commit c9e7b8cadfcbfb877f180a9c89ee9d87f271d17c
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 17:50:24 2021 +0100
Why doesn’t `last' return the last /element/?
commit f2248810132813191ebdd11f739d24bcc49f3165
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 17:46:33 2021 +0100
Fix RAM detection on NetBSD
commit 31684ffc39217b55f775bc35b7409baf2d394bcc
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 17:15:39 2021 +0100
Fix usage of wrong types
Use numbers and not human-readable file sizes
commit 4627e491bff2257cf37136f00fcd2b0d2bae7279
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 17:11:10 2021 +0100
Remove unused function
commit aea999276baad7112feb3e7868be4881af362240
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 17:11:00 2021 +0100
Fix undefined function
commit 8afaabd33f1e7a7f0d991b72a1e4f8cb492c153b
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Sun Dec 19 16:53:16 2021 +0100
Introduce `eshell-info-banner-file-size-flavor' custom option
This custom variable can hold three different values:
- nil
- si
- iec
This value is passed to `file-size-human-readable', see its
documentation for more information on the effect of this variable.
Since the value `iec' introduces an additional character in the size
displayed, some code is reorganized in order to keep the banner’s size
by reducing the length of the progress bar.
Some duplicate code is also merged in the new
`eshell-info-banner--progress-bar-without-prefix' function.
Update the README to reflect these changes.
The `Customizing' heading is now separated in two:
- one subheading for custom variables
- one subheading for faces
While the code indicates its license is GLP-3.0-or-later, the
LICENSE.md file indicated GPL-3.0-only. This commit changes the
LICENSE file so make it compatible with the code’s license.
Fix byte-compile and package-lint errors as mentionned here
https://github.com/melpa/melpa/pull/7790#issuecomment-962727545
Fix a docstring that was too long, quoted `eshell-info-banner' in
three other docstrings.
Renaming functions may have introduced some breaking changes, hence
the update on the REAME. Since these were breaking changes, this
commit removes two functions as well which weren’t used internally
anymore.
eshell-info-banner will now default to duf if it is installed and
avaliable on the system, otherwise it will default to
platform-specific implementation.
All custom variables now have the package version in which they were
introduced specified.
This commit fixes a small typo in the documentation of
`eshell-info-banner--abbr-path'
Remove a leftover line used for debugging
This commit adds detection of the current OSX or macOS version.
It also adds support for non-standard Guix SD Linux distribution.
Windows OS detection is improved, with a separation of the name of the
version of Windows and its build number, the latter is treated as the
kernel version of Windows.
Memory detection and partition detection now relies of the operating
system detection of Emacs to know whether it can run or not. Also,
this is cleaning up a lot the function `eshell-info-banner', and I
think I will continue cleaning it up even more in the future.
Old one-line comments that used to separate parts of the file are now
on three lines, while one-line comments are a sort of subsection of
these new big sections.
Page breaks will make it easier to navigate the code source.
Variable `system-name' is obsolete and is replaced by a function with
the same name.