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
2fbbd61b
Commit
2fbbd61b
authored
Mar 09, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #127 from dylanaraps/alpine
Added support for Alpine Linux
parents
b00904ad
404c955e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
README.md
README.md
+1
-0
alpine
ascii/distro/alpine
+19
-0
neofetch
neofetch
+5
-2
No files found.
README.md
View file @
2fbbd61b
...
@@ -66,6 +66,7 @@ your distro's logo or any ascii art of your choice!
...
@@ -66,6 +66,7 @@ your distro's logo or any ascii art of your choice!
### Required dependencies:
### Required dependencies:
-
`Bash 3.0+`
-
`Bash 3.0+`
-
Alpine Linux: You also need
`ncurses`
.
-
`xprop`
\[
1
\]
-
`xprop`
\[
1
\]
-
`procps-ng`
-
`procps-ng`
-
Not required on OS X
-
Not required on OS X
...
...
ascii/distro/alpine
0 → 100644
View file @
2fbbd61b
"\
${c1} \`---------------------\`
\`-----------------------\`
.-------------------------.
.---------------------------.
\`-----------..------------------\`
\`----------.\` \`.----\`\`-----------\`
---------.\` \`.. \`.---------
-------.\` \`..\` \`\`\` \`.-------
-----.\` \`.----.\` \`..\` \`.-----
---.\` \`.\` ------.\` \`..\` \`.---
---..\`..--.\`--------.\`\`..--.\`\`.----
\`---------------------------------\`
\`-------------------------------\`
.---------------------------.
.-------------------------.
\`-----------------------\`
\`---------------------\`
"
neofetch
View file @
2fbbd61b
...
@@ -494,7 +494,7 @@ getuptime () {
...
@@ -494,7 +494,7 @@ getuptime () {
case "
$os
" in
case "
$os
" in
"
Linux
")
"
Linux
")
case "
$distro
" in
case "
$distro
" in
"
Puppy
Linux
"* | "
Quirky
Werewolf
"* | "
Precise
Puppy
"*)
"
Puppy
Linux
"* | "
Quirky
Werewolf
"* | "
Precise
Puppy
"*
| "
Alpine
Linux
"*
)
uptime=
$(
uptime
|
awk
-F
':[0-9]{2}+ |(, ){1}+'
'{printf $2}'
)
uptime=
$(
uptime
|
awk
-F
':[0-9]{2}+ |(, ){1}+'
'{printf $2}'
)
uptime=
${
uptime
/ /
}
uptime=
${
uptime
/ /
}
;;
;;
...
@@ -618,6 +618,9 @@ getpackages () {
...
@@ -618,6 +618,9 @@ getpackages () {
elif type -p nix-env >/dev/null 2>&1; then
elif type -p nix-env >/dev/null 2>&1; then
packages="
$(
ls
-d
-1
/nix/store/
*
/ |
wc
-l
)
"
packages="
$(
ls
-d
-1
/nix/store/
*
/ |
wc
-l
)
"
elif type -p apk >/dev/null 2>&1; then
packages="
$(
apk info |
wc
-l
)
"
elif type -p pacman-g2 >/dev/null 2>&1; then
elif type -p pacman-g2 >/dev/null 2>&1; then
packages="
$(
pacman-g2
-Q
|
wc
-l
)
"
packages="
$(
pacman-g2
-Q
|
wc
-l
)
"
...
@@ -2035,7 +2038,7 @@ colors () {
...
@@ -2035,7 +2038,7 @@ colors () {
setcolors 3 2 4 5 7
setcolors 3 2 4 5 7
;;
;;
"
CRUX
"* | "
Chakra
"* | "
gNewSense
"* | "
SailfishOS
"*)
"
CRUX
"* | "
Chakra
"* | "
gNewSense
"* | "
SailfishOS
"*
| "
Alpine
"*
)
setcolors 4 5 7
setcolors 4 5 7
;;
;;
...
...
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