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
6244bbb1
Commit
6244bbb1
authored
May 31, 2018
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: cleanup
parent
2bb28bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
neofetch
neofetch
+19
-9
No files found.
neofetch
View file @
6244bbb1
...
@@ -782,16 +782,26 @@ get_os() {
...
@@ -782,16 +782,26 @@ get_os() {
# $kernel_name is set in a function called cache_uname and is
# $kernel_name is set in a function called cache_uname and is
# just the output of "uname -s".
# just the output of "uname -s".
case "$kernel_name" in
case "$kernel_name" in
"Linux" | "GNU"*) os="Linux" ;;
"Darwin") os="$(sw_vers -productName)" ;;
"Darwin") os="$(sw_vers -productName)" ;;
"SunOS") os="Solaris" ;;
*"BSD" | "DragonFly" | "Bitrig") os="BSD" ;;
"Haiku") os="Haiku" ;;
"CYGWIN"* | "MSYS"* | "MINGW"*) os="Windows" ;;
"MINIX") os="MINIX" ;;
"SunOS") os="Solaris" ;;
"AIX") os="AIX" ;;
"Haiku") os="Haiku" ;;
"IRIX"*) os="IRIX" ;;
"MINIX") os="MINIX" ;;
"AIX") os="AIX" ;;
"IRIX"*) os="IRIX" ;;
"FreeMiNT") os="FreeMiNT" ;;
"FreeMiNT") os="FreeMiNT" ;;
"Linux" | "GNU"*)
os="Linux"
;;
*"BSD" | "DragonFly" | "Bitrig")
os="BSD"
;;
"CYGWIN"* | "MSYS"* | "MINGW"*)
os="Windows"
;;
*)
*)
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
...
...
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