diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-29 09:19:35 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-29 09:19:35 +0300 |
| commit | 3a562917c3eb1d20a6261d4d0d09889274612f68 (patch) | |
| tree | 7f1c33a24078dfbc73e8da52ed812f51d095546c | |
| parent | 300f31c5cd761706c0fd249ba1717c6adcc5a1a5 (diff) | |
| download | pfetch-3a562917c3eb1d20a6261d4d0d09889274612f68.tar.gz | |
pfetch: initial DragonflyBSD support
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -284,7 +284,7 @@ get_host() { host="$name $version $model" ;; - Darwin*|FreeBSD*) + Darwin*|FreeBSD*|Dragonfly*) host=$(sysctl -n hw.model) ;; @@ -437,7 +437,7 @@ get_pkgs() { has brew && printf '%s\n' /usr/local/Cellar/* ;; - FreeBSD*) + FreeBSD*|Dragonfly*) pkg info ;; @@ -544,7 +544,7 @@ get_memory() { # Used memory is calculated using the following "formula" (FreeBSD): # (inactive_count + free_count + cache_count) * page_size / 1024 - FreeBSD*) + FreeBSD*|Dragonfly*) mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024)) # Use 'set --' to store the output of the command in the |
