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
9d84ede7
Commit
9d84ede7
authored
Jun 12, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Fix merge conflicts
parents
b9e318de
ff7ab26d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
neofetch
neofetch
+15
-15
No files found.
neofetch
View file @
9d84ede7
...
@@ -474,7 +474,7 @@ esac
...
@@ -474,7 +474,7 @@ esac
# Distro {{{
# Distro {{{
getdistro
()
{
getdistro
()
{
[
!
-z
"
$distro
"
]
&&
return
[
"
$distro
"
]
&&
return
case
"
$os
"
in
case
"
$os
"
in
"Linux"
)
"Linux"
)
...
@@ -627,12 +627,12 @@ getuptime () {
...
@@ -627,12 +627,12 @@ getuptime () {
*
)
days
=
"
$days
days"
;;
*
)
days
=
"
$days
days"
;;
esac
esac
[
!
-z
"
$hours
"
]
&&
\
[
"
$hours
"
]
&&
\
[
!
-z
"
$minutes
"
]
&&
\
[
"
$minutes
"
]
&&
\
hours+
=
","
hours+
=
","
[
!
-z
"
$days
"
]
&&
\
[
"
$days
"
]
&&
\
[
!
-z
"
$hours
"
]
&&
\
[
"
$hours
"
]
&&
\
days+
=
","
days+
=
","
uptime
=
"up
$days
$hours
$minutes
"
uptime
=
"up
$days
$hours
$minutes
"
...
@@ -1160,7 +1160,7 @@ getcpu () {
...
@@ -1160,7 +1160,7 @@ getcpu () {
cpu="${cpu//with Radeon HD Graphics}"
cpu="${cpu//with Radeon HD Graphics}"
# Add cpu cores to output
# Add cpu cores to output
[ "$cpu_cores" == "on" ] && [
! -z
"$cores" ] && \
[ "$cpu_cores" == "on" ] && [ "$cores" ] && \
cpu="${cpu/@/\(${cores}\) @}"
cpu="${cpu/@/\(${cores}\) @}"
# Make the output of cpu shorter
# Make the output of cpu shorter
...
@@ -1183,7 +1183,7 @@ getcpu () {
...
@@ -1183,7 +1183,7 @@ getcpu () {
# Trim whitespace
# Trim whitespace
cpu="${cpu//+( )/ }"
cpu="${cpu//+( )/ }"
[
! -z
"$cpu" ] && prin "$subtitle" "$cpu"
[ "$cpu" ] && prin "$subtitle" "$cpu"
if [ "$cpu_display" != "off" ]; then
if [ "$cpu_display" != "off" ]; then
cpu_usage="$(ps aux | awk '
BEGIN
{
sum
=
0
}
{
sum
+=
$3
}
;
END
{
print
sum
}
')"
cpu_usage="$(ps aux | awk '
BEGIN
{
sum
=
0
}
{
sum
+=
$3
}
;
END
{
print
sum
}
')"
...
@@ -1566,7 +1566,7 @@ getresolution () {
...
@@ -1566,7 +1566,7 @@ getresolution () {
height="
${
height
/CurrentVerticalResolution
'='
/
}
"
height="
${
height
/CurrentVerticalResolution
'='
/
}
"
height="
${
height
//[[
:space:]]
}
"
height="
${
height
//[[
:space:]]
}
"
[
! -z
"
$width
" ] &&
\
[ "
$width
" ] &&
\
resolution="
${
width
}
x
${
height
}
"
resolution="
${
width
}
x
${
height
}
"
;;
;;
esac
esac
...
@@ -1946,7 +1946,7 @@ getbattery () {
...
@@ -1946,7 +1946,7 @@ getbattery () {
battery0now="
$(
sysctl
-n
hw.sensors.acpibat0.watthour3
)
"
battery0now="
$(
sysctl
-n
hw.sensors.acpibat0.watthour3
)
"
battery0now="
${
battery0now
/ Wh*
}
"
battery0now="
${
battery0now
/ Wh*
}
"
[
! -z
"
$battery0full
" ] &&
\
[ "
$battery0full
" ] &&
\
battery="
$(
printf
"%s
\n
"
"100 *
$battery0now
/
$battery0full
"
| bc
)
%
"
battery="
$(
printf
"%s
\n
"
"100 *
$battery0now
/
$battery0full
"
| bc
)
%
"
;;
;;
...
@@ -1960,7 +1960,7 @@ getbattery () {
...
@@ -1960,7 +1960,7 @@ getbattery () {
battery="
${
battery
/EstimatedChargeRemaining
'='
}
"
battery="
${
battery
/EstimatedChargeRemaining
'='
}
"
battery="
${
battery
//[[
:space:]]/
}
"
battery="
${
battery
//[[
:space:]]/
}
"
battery="
${
battery
//
}
"
battery="
${
battery
//
}
"
[
! -z
"
$battery
" ] &&
\
[ "
$battery
" ] &&
\
battery+="
%
"
battery+="
%
"
;;
;;
esac
esac
...
@@ -2110,8 +2110,8 @@ getcols () {
...
@@ -2110,8 +2110,8 @@ getcols () {
spaces="
$(
printf
"%
${
block_height
}
s"
)
"
spaces="
$(
printf
"%
${
block_height
}
s"
)
"
# Convert the spaces into rows of blocks.
# Convert the spaces into rows of blocks.
[
! -z
"
$blocks
" ] && cols+="
${
spaces
// /
${
blocks
}
"
\0
33[0m"
nl
}
"
[ "
$blocks
" ] && cols+="
${
spaces
// /
${
blocks
}
"
\0
33[0m"
nl
}
"
[
! -z
"
$blocks2
" ] && cols+="
${
spaces
// /
${
blocks2
}
"
\0
33[0m"
nl
}
"
[ "
$blocks2
" ] && cols+="
${
spaces
// /
${
blocks2
}
"
\0
33[0m"
nl
}
"
# Add newlines to the string.
# Add newlines to the string.
cols="
${
cols
%%
'nl'
}
"
cols="
${
cols
%%
'nl'
}
"
...
@@ -2549,7 +2549,7 @@ stdout () {
...
@@ -2549,7 +2549,7 @@ stdout () {
stdout_separator_flag
=
"
$(
awk
-F
'--stdout_separator '
'{printf $2}'
<<<
"
${
args
[@]
}
"
)
"
stdout_separator_flag
=
"
$(
awk
-F
'--stdout_separator '
'{printf $2}'
<<<
"
${
args
[@]
}
"
)
"
stdout_separator_flag
=
"
${
stdout_separator_flag
/
'--'
*
}
"
stdout_separator_flag
=
"
${
stdout_separator_flag
/
'--'
*
}
"
[
!
-z
"
$stdout_separator_flag
"
]
&&
\
[
"
$stdout_separator_flag
"
]
&&
\
stdout_separator
=
"
$stdout_separator_flag
"
stdout_separator
=
"
$stdout_separator_flag
"
for
func
in
"
${
args
[@]
}
"
;
do
for
func
in
"
${
args
[@]
}
"
;
do
...
@@ -3241,7 +3241,7 @@ while [ "$1" ]; do
...
@@ -3241,7 +3241,7 @@ while [ "$1" ]; do
disk_display
=
"infobar"
disk_display
=
"infobar"
printinfo
()
{
printinfo
()
{
if
[
!
-z
"
$TRAVIS_OS_NAME
"
]
;
then
if
[
"
$TRAVIS_OS_NAME
"
]
;
then
info linebreak
info linebreak
info linebreak
info linebreak
fi
fi
...
@@ -3298,7 +3298,7 @@ if [ "$image" != "off" ]; then
...
@@ -3298,7 +3298,7 @@ if [ "$image" != "off" ]; then
if
[
-n
"
$ITERM_PROFILE
"
]
;
then
if
[
-n
"
$ITERM_PROFILE
"
]
;
then
image_backend
=
"iterm2"
image_backend
=
"iterm2"
elif
[
!
-z
"
$(
tycat 2>/dev/null
)
"
]
;
then
elif
[
"
$(
tycat 2>/dev/null
)
"
]
;
then
image_backend
=
"tycat"
image_backend
=
"tycat"
else
else
...
...
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