Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
7787ed29
Commit
7787ed29
authored
May 24, 2017
by
Dylan Araps
Committed by
GitHub
May 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #727 from Takeya-Yuki/master
Fix KSLinux Support
parents
8f7b330b
df6dab17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
kslinux
ascii/distro/kslinux
+11
-0
neofetch
neofetch
+13
-3
No files found.
ascii/distro/kslinux
0 → 100644
View file @
7787ed29
${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
neofetch
View file @
7787ed29
...
@@ -106,6 +106,9 @@ get_distro() {
...
@@ -106,6 +106,9 @@ 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
)
"
...
@@ -438,6 +441,9 @@ get_packages() {
...
@@ -438,6 +441,9 @@ 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
)))
"
...
@@ -1637,7 +1643,6 @@ get_term() {
...
@@ -1637,7 +1643,6 @@ get_term() {
while [[ -z "
$term
" ]]; do
while [[ -z "
$term
" ]]; do
parent="
$(
get_ppid
"
$parent
"
)
"
parent="
$(
get_ppid
"
$parent
"
)
"
name="
$(
get_process_name
"
$parent
"
)
"
name="
$(
get_process_name
"
$parent
"
)
"
case "
${
name
//
}
" in
case "
${
name
//
}
" in
"
${
SHELL
/*\/
}
" | *"
sh
" | "
tmux
"* | "
screen
" | "
su
"*) ;;
"
${
SHELL
/*\/
}
" | *"
sh
" | "
tmux
"* | "
screen
" | "
su
"*) ;;
"
login
"* | *"
Login
"* | "
init
" | "
(
init
)
") term="
$(
tty
)
" ;;
"
login
"* | *"
Login
"* | "
init
" | "
(
init
)
") term="
$(
tty
)
" ;;
...
@@ -2295,10 +2300,10 @@ get_w3m_img_path() {
...
@@ -2295,10 +2300,10 @@ get_w3m_img_path() {
elif
[[
-x
"/usr/libexec64/w3m/w3mimgdisplay"
]]
;
then
elif
[[
-x
"/usr/libexec64/w3m/w3mimgdisplay"
]]
;
then
w3m_img_path
=
"/usr/libexec64/w3m/w3mimgdisplay"
w3m_img_path
=
"/usr/libexec64/w3m/w3mimgdisplay"
elif
[[
-x
"/usr/local/libexec/w3m/w3mimgdisplay"
]]
;
then
elif
[[
-x
"/usr/local/libexec/w3m/w3mimgdisplay"
]]
;
then
w3m_img_path
=
"/usr/local/libexec/w3m/w3mimgdisplay"
w3m_img_path
=
"/usr/local/libexec/w3m/w3mimgdisplay"
else
else
err
"Image: w3m-img wasn't found on your system"
err
"Image: w3m-img wasn't found on your system"
fi
fi
...
@@ -3070,6 +3075,11 @@ get_distro_colors() {
...
@@ -3070,6 +3075,11 @@ get_distro_colors() {
ascii_file="
korora
"
ascii_file="
korora
"
;;
;;
"
KSLinux
"*)
set_colors 4 7 1
ascii_file="
kslinux
"
;;
"
Kubuntu
"*)
"
Kubuntu
"*)
set_colors 4 7 1
set_colors 4 7 1
ascii_file="
kubuntu
"
ascii_file="
kubuntu
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment