aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-29 09:19:35 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-29 09:19:35 +0300
commit3a562917c3eb1d20a6261d4d0d09889274612f68 (patch)
tree7f1c33a24078dfbc73e8da52ed812f51d095546c
parent300f31c5cd761706c0fd249ba1717c6adcc5a1a5 (diff)
downloadpfetch-3a562917c3eb1d20a6261d4d0d09889274612f68.tar.gz
pfetch: initial DragonflyBSD support
-rwxr-xr-xpfetch6
1 files changed, 3 insertions, 3 deletions
diff --git a/pfetch b/pfetch
index e9e35e1..0a2ca5f 100755
--- a/pfetch
+++ b/pfetch
@@ -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