aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 22:52:13 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 22:52:13 +0300
commite9dbdb5d15d19fa5e08266f6b05561c173d0dc14 (patch)
treec6c4e29819032cf56c19d97a87f2da97da70e0fc
parentb6692aa52334f838ebfcf1162982fd8012ee5cd1 (diff)
downloadpfetch-e9dbdb5d15d19fa5e08266f6b05561c173d0dc14.tar.gz
docs: update
-rw-r--r--README.md2
-rwxr-xr-xpfetch5
2 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 985deb9..32d3dcf 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,8 @@ _/\ __)/_) pkgs 130
# NOTE: If 'ascii' will be used, it must come first.
# Default: first example below
# Valid: space separated string
+#
+# OFF by default: shell
PF_INFO="ascii title distro host kernel uptime pkgs memory"
# Example: Only ASCII.
diff --git a/pfetch b/pfetch
index 3357a1a..8e0b9f0 100755
--- a/pfetch
+++ b/pfetch
@@ -150,6 +150,10 @@ get_kernel() {
esac
}
+get_shell() {
+ log shell "${SHELL##*/}"
+}
+
get_host() {
case $os in
Linux*)
@@ -262,6 +266,7 @@ get_pkgs() {
# Commands which print packages one per line.
has pkginfo && pkginfo -i
has pkg && pkg list
+ has pkg_info && pkg_info
;;
esac | wc -l
)