Merge branch 'master' of github.com:dylanaraps/neofetch
This commit is contained in:
commit
bb6c4d374a
|
@ -6,18 +6,22 @@
|
|||
- **[@mstraube](https://github.com/mstraube)**
|
||||
- **[@Artoriuz](https://github.com/Artoriuz)**
|
||||
- **[@WilsonRU](https://github.com/WilsonRU)**
|
||||
- **[@Takeya-Yuki](https://github.com/Takeya-Yuki)**
|
||||
- **[@LER0ever](https://github.com/LER0ever)**
|
||||
|
||||
|
||||
## Operating System
|
||||
|
||||
- Added support for Arch XFerience. **[@mstraube](https://github.com/mstraube)**
|
||||
- Added support for Maui. **[@mstraube](https://github.com/mstraube)**
|
||||
- Added support for KS Linux. **[@Takeya-Yuki](https://github.com/Takeya-Yuki)**
|
||||
|
||||
|
||||
## General
|
||||
|
||||
- Minimum required BASH version is now 3.2.
|
||||
- (Neofetch has always used 3.2+ features, I've just made it obvious now in the documentation.)
|
||||
- Fixed config file not being created.
|
||||
|
||||
|
||||
## Images
|
||||
|
@ -50,3 +54,7 @@
|
|||
**Song**
|
||||
|
||||
- Do not detect ibus\* or indicator\* as player. **[@dawidd6](https://github.com/dawidd6)**
|
||||
|
||||
**Model**
|
||||
|
||||
- Specify when running on a Hackintosh. **[@LER0ever](https://github.com/LER0ever)**
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
${c1} K K U U RRRR ooo
|
||||
K K U U R R o o
|
||||
KKK U U RRRR o o
|
||||
K K U U R R o o
|
||||
K K UUU R R ooo
|
||||
|
||||
${c2} SSS AAA W W AAA
|
||||
S A A W W A A
|
||||
SSS AAAAA W W W AAAAA
|
||||
S A A WW WW A A
|
||||
SSS A A W W A A
|
27
neofetch
27
neofetch
|
@ -91,7 +91,10 @@ get_distro() {
|
|||
distro="$(lsb_release $lsb_flags)"
|
||||
|
||||
elif type -p guix >/dev/null; then
|
||||
distro="GuixSD"
|
||||
case "$distro_shorthand" in
|
||||
"on" | "tiny") distro="GuixSD" ;;
|
||||
*) distro="GuixSD $(guix system -V | awk 'NR==1{printf $5}')"
|
||||
esac
|
||||
|
||||
elif type -p crux >/dev/null; then
|
||||
distro="$(crux)"
|
||||
|
@ -103,6 +106,9 @@ get_distro() {
|
|||
elif type -p tazpkg >/dev/null; then
|
||||
distro="SliTaz $(< /etc/slitaz-release)"
|
||||
|
||||
elif type -p kpm > /dev/null; then
|
||||
distro="KSLinux"
|
||||
|
||||
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||
distro="Android $(getprop ro.build.version.release)"
|
||||
|
||||
|
@ -236,7 +242,13 @@ get_model() {
|
|||
fi
|
||||
;;
|
||||
|
||||
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
||||
"Mac OS X")
|
||||
if [[ "$(kextstat | grep "FakeSMC")" ]]; then
|
||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||
else
|
||||
model="$(sysctl -n hw.model)"
|
||||
fi
|
||||
;;
|
||||
"iPhone OS")
|
||||
case "$machine_arch" in
|
||||
"iPad1,1") model="iPad" ;;
|
||||
|
@ -257,7 +269,7 @@ get_model() {
|
|||
"iPhone2,1") model="iPhone 3GS" ;;
|
||||
"iPhone3,"[1-3]) model="iPhone 4" ;;
|
||||
"iPhone4,1") model="iPhone 4S" ;;
|
||||
"iPhone5,"[1-2]) model="iPhone 4" ;;
|
||||
"iPhone5,"[1-2]) model="iPhone 5" ;;
|
||||
"iPhone5,"[3-4]) model="iPhone 5c" ;;
|
||||
"iPhone6,"[1-2]) model="iPhone 5s" ;;
|
||||
"iPhone7,2") model="iPhone 6" ;;
|
||||
|
@ -435,6 +447,9 @@ get_packages() {
|
|||
type -p dpkg >/dev/null && \
|
||||
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
||||
|
||||
type -p kpm >/dev/null && \
|
||||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||
|
||||
type -p pkgtool >/dev/null && \
|
||||
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
||||
|
||||
|
@ -1634,7 +1649,6 @@ get_term() {
|
|||
while [[ -z "$term" ]]; do
|
||||
parent="$(get_ppid "$parent")"
|
||||
name="$(get_process_name "$parent")"
|
||||
|
||||
case "${name// }" in
|
||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su"*) ;;
|
||||
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
|
||||
|
@ -3067,6 +3081,11 @@ get_distro_colors() {
|
|||
ascii_file="korora"
|
||||
;;
|
||||
|
||||
"KSLinux"*)
|
||||
set_colors 4 7 1
|
||||
ascii_file="kslinux"
|
||||
;;
|
||||
|
||||
"Kubuntu"*)
|
||||
set_colors 4 7 1
|
||||
ascii_file="kubuntu"
|
||||
|
|
Reference in New Issue