Commit Graph

120 Commits

Author SHA1 Message Date
SqrtMinusOne 2f4e59ea7a Add new variables to the README 2022-07-28 12:06:06 +02:00
SqrtMinusOne 987e69a662 Add an option to exclude some partitions 2022-07-28 12:06:06 +02:00
SqrtMinusOne 6b464b1b73 Add an option to filter duplicate partitions 2022-07-28 12:06:06 +02:00
Lucien Cartier-Tilet b7f2bfc013
v0.8.8 2022-05-31 11:40:22 +02:00
Lucien Cartier-Tilet fcc88df86a
Add CI with Github Actions
Check for compatibility with all version of Emacs since Emacs 25.1

Add Cask file for managing dependencies in CI

Add badge in README for CI
2022-05-31 11:40:22 +02:00
Lucien Cartier-Tilet 4ffaf329db
Fix erroneous require 2022-05-31 11:40:12 +02:00
Juergen Hoetzel 8e57add6c7 Use tramp-aware shell function
Fixes wrong report of disk usage when using
‘eshell-info-banner-tramp-aware’.
2022-05-16 19:14:29 +02:00
Juergen Hoetzel 8c6e37cc61 GNU and Darwin df shows space in 1K blocks by default
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
2022-05-14 22:01:14 +02:00
Lucien Cartier-Tilet 53fc69b871
Clarify partition detection paragraph for Windows users 2022-04-02 19:31:30 +02:00
Lucien Cartier-Tilet ce7b5f69cd
Reimplement and replace s-repeat
Progressively phasing out s.el as a dependency
2022-04-02 19:21:37 +02:00
Lucien Cartier-Tilet dedcb8cee5
Replace s-trim with string-trim
Progressively phasing out s.el as a dependency
2022-04-02 19:21:34 +02:00
Lucien Cartier-Tilet f9490f07a1
Turns out I misunderstood what `:version` is for in defcustom 2022-03-29 00:06:14 +02:00
Lucien Cartier-Tilet 9c17e92f02
Fix macOS version detection
Now use regexes to detect the macOS version returned by
`sw_vers -productVersion`

Also add new macOS version

Fixes #18
2022-03-26 10:33:59 +01:00
Lucien Cartier-Tilet 247d8bf4dd
Remove eval-when-compile on const variable
Fixes #20
2022-01-14 11:21:29 +01:00
Lucien Cartier-Tilet d4033120c1
Evaluate eshell-info-banner-path-separator on compile 2022-01-07 12:09:44 +01:00
Lucien Cartier-Tilet 89d2b7226b
Remove dependency on f.el 2022-01-07 12:06:39 +01:00
Lucien Cartier-Tilet 2c53218cc7
Better documentation formatting 2022-01-07 02:56:38 +01:00
Lucien Cartier-Tilet f59a472204
Fix erroneous function call on NetBSD 2022-01-07 02:04:31 +01:00
Lucien Cartier-Tilet f9113b7a35
Improve functions documentation 2022-01-07 02:03:44 +01:00
Lucien Cartier-Tilet d145705a61
Update screenshot 2022-01-05 19:24:55 +01:00
Lucien Cartier-Tilet 9e6fecc94a
Fix battery detection for non-Linux systems
Some non-Linux systems do not have a `/sys/` directory. Therefore,
check it only if we are in a Linux system.

Fixes #19
2022-01-05 19:02:05 +01:00
Lucien Cartier-Tilet 20d0682f39
Separate functions getting memory info for Darwin and NetBSD systems
Fixes #17
2022-01-04 20:00:52 +01:00
Lucien Cartier-Tilet d248447cb0
Add macOS versions
Add support for Mac OS X 10.0 to 10.4
Add support for macOS Monterey
2021-12-21 10:44:47 +01:00
Lucien Cartier-Tilet 36b964a993
Merge fix/locale-non-posix-shells into master
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.
2021-12-21 00:12:41 +01:00
Lucien Cartier-Tilet 661ae7c87d
Remove REMOTE arg from `eshell-info-banner--executable-find'
`eshell-info-banner--executable-find' now only acts according to the
user’s preferences set with `eshell-info-banner-tramp-aware'.
2021-12-20 23:11:44 +01:00
Lucien Cartier-Tilet 382bb55064
Add support for RAM detection in NetBSD
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
2021-12-19 18:35:59 +01:00
Lucien Cartier-Tilet a2f24e4633
Merge feature/file-size-flavor into master
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
2021-12-19 17:19:42 +01:00
Lucien Cartier-Tilet 89f78f023a
Fix uptime detection on NetBSD 2021-12-19 13:48:34 +01:00
Lucien Cartier-Tilet 6ec3280a8d
Add documentation on new function 2021-12-19 00:17:27 +01:00
Lucien Cartier-Tilet 257ece43e6
Fix extra argument for executable-find with older versions of Emacs 2021-12-19 00:15:06 +01:00
Lucien Cartier-Tilet 0c9e6de3ee
Add Android Support 2021-12-18 18:46:11 +01:00
Lucien Cartier-Tilet 76d87e4325
Fix error when directory `/sys` is not readable by the user 2021-12-18 17:48:26 +01:00
Lucien Cartier-Tilet 6e90f02988
Bump version, change homepage 2021-12-18 16:31:27 +01:00
Lucien Cartier-Tilet 08d7bc42da
Add Melpa Stable badge 2021-12-18 16:30:27 +01:00
Lucien Cartier-Tilet c8073faa88
Add support for Bedrock Linux and Proxmox 2021-12-18 16:24:32 +01:00
Lucien Cartier-Tilet 9b75d19451
Add new macOS Big Sur versions 2021-11-19 19:06:43 +01:00
Lucien Cartier-Tilet 81181090df
Bump version 2021-11-19 18:55:26 +01:00
Lucien Cartier-Tilet 0bd70d0d0f
Fix df-related code 2021-11-19 18:38:24 +01:00
Lucien Cartier-Tilet 312f1e3da3
Update link in REAMDE 2021-11-15 10:14:29 +01:00
Lucien Cartier-Tilet a43818569d
Fix value type issue in `eshell-info-banner--get-memory-gnu' 2021-11-15 10:14:29 +01:00
Lucien Cartier-Tilet 517b9d705c
Update README, package is now in melpa
Update recipes for installing package

Add MELPA badge
2021-11-15 10:14:29 +01:00
Lucien Cartier-Tilet 33684943c3
Fix license issue
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.
2021-11-11 00:07:13 +01:00
Lucien Cartier-Tilet 60daf22d32
Remove dash.el dependency 2021-11-10 19:52:15 +01:00
Shohei YOSHIDA 32a65e4a6a
Fix typo 2021-11-10 16:43:11 +09:00
Lucien Cartier-Tilet 36d1b981be
Fix package-lint, checkdoc and byte-compile errors
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.
2021-11-08 13:41:41 +01:00
Lucien Cartier-Tilet 6dc46a1ab9
Merge pull request #13 from syohex/byte-compile-warning
Fix byte-compile issues
2021-11-07 12:58:43 +01:00
Shohei YOSHIDA 446967b768
Fix byte-compile issues 2021-11-07 18:51:50 +09:00
Lucien Cartier-Tilet 48470a4b85
Simplify code retrieving partitions between GNU and Darwin systems
Also bump revision number
2021-11-07 00:08:08 +01:00
Lucien Cartier-Tilet b2eff90711
Enforce LANG=C for all shell-command-to-string calls 2021-11-07 00:08:08 +01:00
Lucien Cartier-Tilet 0a8a340260
Add OS name detection for BSD OSes, memory improvements for UNIX
Simpler function for UNIX systems, including macOS.

Bump to 0.6
2021-11-07 00:08:01 +01:00