Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
neofetch: Drop . outside of iOS for oil shell
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Apr 15, 2020
1 parent c374ee2 commit 23c445d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -903,24 +903,24 @@ get_os() {
# $kernel_name is set in a function called cache_uname and is
# just the output of "uname -s".
case $kernel_name in
Darwin): "$darwin_name" ;;
SunOS): Solaris ;;
Haiku): Haiku ;;
MINIX): MINIX ;;
AIX): AIX ;;
IRIX*): IRIX ;;
FreeMiNT): FreeMiNT ;;
Darwin) os=$darwin_name ;;
SunOS) os=Solaris ;;
Haiku) os=Haiku ;;
MINIX) os=MINIX ;;
AIX) os=AIX ;;
IRIX*) os=IRIX ;;
FreeMiNT) os=FreeMiNT ;;

Linux|GNU*)
: Linux
os=Linux
;;

*BSD|DragonFly|Bitrig)
: BSD
os=BSD
;;

CYGWIN*|MSYS*|MINGW*)
: Windows
os=Windows
;;

*)
Expand All @@ -929,8 +929,6 @@ get_os() {
exit 1
;;
esac

os=$_
}

get_distro() {
Expand Down Expand Up @@ -1425,7 +1423,7 @@ get_packages() {
# dir: Count files or dirs in a glob.
# pac: If packages > 0, log package manager name.
# tot: Count lines in command output.
has() { type -p "$1" >/dev/null && manager=$_; }
has() { type -p "$1" >/dev/null && manager=$1; }
dir() { ((packages+=$#)); pac "$#"; }
pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${manager}, "; }; }
tot() { IFS=$'\n' read -d "" -ra pkgs <<< "$("$@")";((packages+=${#pkgs[@]}));pac "${#pkgs[@]}";}
Expand Down

0 comments on commit 23c445d

Please sign in to comment.