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
23c445d0
Unverified
Commit
23c445d0
authored
Apr 15, 2020
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: Drop . outside of iOS for oil shell
parent
c374ee2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
neofetch
neofetch
+11
-13
No files found.
neofetch
View file @
23c445d0
...
@@ -903,24 +903,24 @@ get_os() {
...
@@ -903,24 +903,24 @@ 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
Darwin)
: "$darwin_name"
;;
Darwin)
os=$darwin_name
;;
SunOS)
:
Solaris ;;
SunOS)
os=
Solaris ;;
Haiku)
:
Haiku ;;
Haiku)
os=
Haiku ;;
MINIX)
:
MINIX ;;
MINIX)
os=
MINIX ;;
AIX)
:
AIX ;;
AIX)
os=
AIX ;;
IRIX*)
:
IRIX ;;
IRIX*)
os=
IRIX ;;
FreeMiNT)
:
FreeMiNT ;;
FreeMiNT)
os=
FreeMiNT ;;
Linux|GNU*)
Linux|GNU*)
:
Linux
os=
Linux
;;
;;
*BSD|DragonFly|Bitrig)
*BSD|DragonFly|Bitrig)
:
BSD
os=
BSD
;;
;;
CYGWIN*|MSYS*|MINGW*)
CYGWIN*|MSYS*|MINGW*)
:
Windows
os=
Windows
;;
;;
*)
*)
...
@@ -929,8 +929,6 @@ get_os() {
...
@@ -929,8 +929,6 @@ get_os() {
exit 1
exit 1
;;
;;
esac
esac
os=$_
}
}
get_distro() {
get_distro() {
...
@@ -1425,7 +1423,7 @@ get_packages() {
...
@@ -1425,7 +1423,7 @@ get_packages() {
# dir: Count files or dirs in a glob.
# dir: Count files or dirs in a glob.
# pac: If packages > 0, log package manager name.
# pac: If packages > 0, log package manager name.
# tot: Count lines in command output.
# tot: Count lines in command output.
has() { type -p "$1" >/dev/null && manager=$
_
; }
has() { type -p "$1" >/dev/null && manager=$
1
; }
dir() { ((packages+=$#)); pac "$#"; }
dir() { ((packages+=$#)); pac "$#"; }
pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${manager}, "; }; }
pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${manager}, "; }; }
tot() { IFS=$'\n' read -d "" -ra pkgs <<< "$("$@")";((packages+=${#pkgs[@]}));pac "${#pkgs[@]}";}
tot() { IFS=$'\n' read -d "" -ra pkgs <<< "$("$@")";((packages+=${#pkgs[@]}));pac "${#pkgs[@]}";}
...
...
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