Als use the "-k" parameter to enforce this block size, so that the
command does not depend on environment variables (POSIXLY_CORRECT and
BLOCKSIZE).
Fixes #21
commit 8a18bcd346fc146e104f77d3a3362a52db210bc3
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Tue Dec 21 00:06:45 2021 +0100
Change `eshell-info-banner--shell-command-to-string' to function
`eshell-info-banner--shell-command-to-string' being a macro causes
problems in at least `eshell-info-banner--get-memory-unix'.
This commit makes `eshell-info-banner--shell-command-to-string' a
regular function.
commit 981b42c3f530a314990b0d69a6efa9f0bb4957dc
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Mon Dec 20 23:29:17 2021 +0100
Fix variables preceeding commands on non-POSIX shells
This commit introduces a fix to run commands only on POSIX-compliant
shells defined in the new constant `eshell-info-banner--posix-shells'.
If any is found on the machine, the command will be run through it,
otherwise it will default to `sh'.
commit 364e0f5189471ca3d568638144c208a255808e76
Author: Lucien Cartier-Tilet <lucien@phundrak.com>
Date: Mon Dec 20 23:12:15 2021 +0100
Fix setting locale when the default shell is non-POSIX compliant
In some cases, the default shell does not accept any environment
variables preceeding the command, such as:
LANG=C uptime
For instance, tcsh on DragonFly BSD reports
LANG=C: Command not found.
This commit makes the command run on bash, zsh, or sh.
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.