Add KSLinux Support
This commit is contained in:
parent
9868784ff3
commit
10527026fe
|
@ -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
|
17
neofetch
17
neofetch
|
@ -102,7 +102,8 @@ get_distro() {
|
||||||
|
|
||||||
elif type -p tazpkg >/dev/null; then
|
elif type -p tazpkg >/dev/null; then
|
||||||
distro="SliTaz $(< /etc/slitaz-release)"
|
distro="SliTaz $(< /etc/slitaz-release)"
|
||||||
|
elif type -p kpm > /dev/null; then
|
||||||
|
distro="KSLinux"
|
||||||
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||||
distro="Android $(getprop ro.build.version.release)"
|
distro="Android $(getprop ro.build.version.release)"
|
||||||
|
|
||||||
|
@ -434,6 +435,8 @@ get_packages() {
|
||||||
|
|
||||||
type -p dpkg >/dev/null && \
|
type -p dpkg >/dev/null && \
|
||||||
packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))"
|
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 && \
|
type -p pkgtool >/dev/null && \
|
||||||
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
packages="$((packages+=$(ls -1 /var/log/packages | wc -l)))"
|
||||||
|
@ -1633,6 +1636,11 @@ get_term() {
|
||||||
# Check $PPID for terminal emulator.
|
# Check $PPID for terminal emulator.
|
||||||
while [[ -z "$term" ]]; do
|
while [[ -z "$term" ]]; do
|
||||||
parent="$(get_ppid "$parent")"
|
parent="$(get_ppid "$parent")"
|
||||||
|
if [ $parent -lt 2 ]; then
|
||||||
|
parent=1
|
||||||
|
term="kernel shell on $(tty)"
|
||||||
|
fi
|
||||||
|
|
||||||
name="$(get_process_name "$parent")"
|
name="$(get_process_name "$parent")"
|
||||||
|
|
||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
|
@ -3067,6 +3075,11 @@ get_distro_colors() {
|
||||||
ascii_file="korora"
|
ascii_file="korora"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"KSLinux"*)
|
||||||
|
set_colors 4 7 1
|
||||||
|
ascii_file="ks"
|
||||||
|
;;
|
||||||
|
|
||||||
"Kubuntu"*)
|
"Kubuntu"*)
|
||||||
set_colors 4 7 1
|
set_colors 4 7 1
|
||||||
ascii_file="kubuntu"
|
ascii_file="kubuntu"
|
||||||
|
@ -3372,7 +3385,7 @@ get_distro_colors() {
|
||||||
ascii_file="void"
|
ascii_file="void"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"* | "windows10" | "windows8" )
|
*"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"*)
|
||||||
set_colors 6 7
|
set_colors 6 7
|
||||||
ascii_file="windows10"
|
ascii_file="windows10"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue