From 679c7397247031a1d6cb8828dad5518d49d37d78 Mon Sep 17 00:00:00 2001 From: William Gathoye Date: Sat, 14 Jul 2018 15:32:34 +0200 Subject: [PATCH] Add Proxmox VE --- neofetch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/neofetch b/neofetch index a781e224..e9324cab 100755 --- a/neofetch +++ b/neofetch @@ -826,6 +826,14 @@ get_distro() { "on" | "tiny") distro="Siduction" ;; *) distro="Siduction ($(lsb_release -sic))" esac + elif type -p pveversion >/dev/null; then + case "$distro_shorthand" in + "on" | "tiny") distro="Proxmox VE" ;; + *) + distro="$(pveversion)" + distro="${distro#pve-manager/}" + distro="Proxmox VE ${distro%/*}" + esac elif type -p lsb_release >/dev/null; then case "$distro_shorthand" in @@ -7323,6 +7331,32 @@ ${c1} ss EOF ;; + "Proxmox"*) + set_colors 7 202 + read -rd '' ascii_data <<'EOF' +${c1} .://:` `://:. + `hMMMMMMd/ /dMMMMMMh` + `sMMMMMMMd: :mMMMMMMMs` +${c2}`-/+oo+/:${c1}`.yMMMMMMMh- -hMMMMMMMy.`${c2}:/+oo+/-` +`:oooooooo/${c1}`-hMMMMMMMyyMMMMMMMh-`${c2}/oooooooo:` + `/oooooooo:${c1}`:mMMMMMMMMMMMMm:`${c2}:oooooooo/` + ./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/. + .+ooooooo+-${c1}`oNMMMMNo`${c2}-+ooooooo+. + -+ooooooo/.${c1}`sMMs`${c2}./ooooooo+- + :oooooooo/${c1}`..`${c2}/oooooooo: + :oooooooo/`${c1}..${c2}`/oooooooo: + -+ooooooo/.`${c1}sMMs${c2}`./ooooooo+- + .+ooooooo+-`${c1}oNMMMMNo${c2}`-+ooooooo+. + ./ooooooo+-${c1} +NMMMMMMMMN+ ${c2}-+ooooooo/. + `/oooooooo:`${c1}:mMMMMMMMMMMMMm:${c2}`:oooooooo/` +`:oooooooo/`${c1}-hMMMMMMMyyMMMMMMMh-${c2}`/oooooooo:` +`-/+oo+/:`${c1}.yMMMMMMMh- -hMMMMMMMy.${c2}`:/+oo+/-` +${c1} `sMMMMMMMm: :dMMMMMMMs` + `hMMMMMMd/ /dMMMMMMh` + `://:` `://:` +EOF + ;; + "Puppy"* | "Quirky Werewolf"* | "Precise Puppy"*) set_colors 4 7 read -rd '' ascii_data <<'EOF'