Merge pull request #304 from vendion/master
Adding PacBSD support to neofetch
This commit is contained in:
commit
d9fbadb009
|
@ -0,0 +1,26 @@
|
||||||
|
"\
|
||||||
|
${c1} :+sMs.
|
||||||
|
\`:ddNMd- -o--\`
|
||||||
|
-sMMMMh: \`+N+\`\`
|
||||||
|
yMMMMMs\` .....-/-... \`mNh/
|
||||||
|
yMMMMMmh+-\`:sdmmmmmmMmmmmddy+-\`\`./ddNMMm
|
||||||
|
yNMMNMMMMNdyyNNMMMMMMMMMMMMMMMhyshNmMMMm
|
||||||
|
:yMMMMMMMMMNdooNMMMMMMMMMMMMMMMMNmy:mMMd
|
||||||
|
+MMMMMMMMMmy:sNMMMMMMMMMMMMMMMMMMMmshs-
|
||||||
|
:hNMMMMMMN+-+MMMMMMMMMMMMMMMMMMMMMMMs.
|
||||||
|
.omysmNNhy/+yNMMMMMMMMMMNMMMMMMMMMNdNNy-
|
||||||
|
/hMM:::::/hNMMMMMMMMMMMm/-yNMMMMMMN.mMNh\`
|
||||||
|
.hMMMMdhdMMMMMMMMMMMMMMmo \`sMMMMMMN mMMm-
|
||||||
|
:dMMMMMMMMMMMMMMMMMMMMMdo+ oMMMMMMN\`smMNo\`
|
||||||
|
/dMMMMMMMMMMMMMMMMMMMMMNd/\` :yMMMMMN:-hMMM.
|
||||||
|
:dMMMMMMMMMMMMMMMMMMMMMNh\` oMMMMMMNo/dMNN\`
|
||||||
|
:hMMMMMMMMMMMMMMMMMMMMMMNs--sMMMMMMMNNmy++\`
|
||||||
|
sNMMMMMMMMMMMMMMMMMMMMMMMmmNMMMMMMNho::o.
|
||||||
|
:yMMMMMMMMMMMMMNho+sydNNNNNNNmysso/\` -//
|
||||||
|
/dMMMMMMMMMMMMMs- \`\`\`\`\`\`\`\`..\`\`
|
||||||
|
.oMMMMMMMMMMMMNs\` ./y:\`
|
||||||
|
+dNMMNMMMMMMMmy\` \`\`./ys.
|
||||||
|
\`/hMMMMMMMMMMMNo-\`\` \`.+yy+-\`
|
||||||
|
\`-/hmNMNMMMMMMmmddddhhy/-\` \`
|
||||||
|
\`-+oooyMMMdsoo+/:.
|
||||||
|
"
|
19
neofetch
19
neofetch
|
@ -498,6 +498,9 @@ getdistro () {
|
||||||
|
|
||||||
# Workaround for PCBSD as uname still displays FreeBSD.
|
# Workaround for PCBSD as uname still displays FreeBSD.
|
||||||
[ -f "/etc/pcbsd-lang" ] && distro="PCBSD"
|
[ -f "/etc/pcbsd-lang" ] && distro="PCBSD"
|
||||||
|
|
||||||
|
# Workaround for PacBSD as uname displays FreeBSD.
|
||||||
|
[ -f "/etc/pacbsd-release" ] && distro="PacBSD"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
@ -701,12 +704,18 @@ getpackages () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"BSD")
|
"BSD")
|
||||||
if type -p pkg_info >/dev/null 2>&1; then
|
case "$distro" in
|
||||||
packages="$(pkg_info | wc -l)"
|
# PacBSD has both pacman and pkg, but only pacman is used
|
||||||
|
"PacBSD"*) packages="$(pacman -Qq --color never | wc -l)" ;;
|
||||||
|
|
||||||
elif type -p pkg >/dev/null 2>&1; then
|
*)
|
||||||
packages="$(pkg info | wc -l)"
|
if type -p pkg_info >/dev/null 2>&1; then
|
||||||
fi
|
packages="$(pkg_info | wc -l)"
|
||||||
|
elif type -p pkg >/dev/null 2>&1; then
|
||||||
|
packages="$(pkg info | wc -l)"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
|
Reference in New Issue