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
b699989d
Commit
b699989d
authored
Nov 12, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/dylanaraps/neofetch
parents
b3161124
a6f45193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
neofetch
neofetch
+7
-7
No files found.
neofetch
View file @
b699989d
...
...
@@ -407,7 +407,7 @@ get_packages() {
"
Mac OS X
")
[[ -d "
/
usr/local/bin
" ]] &&
\
packages="
$(($(
ls
-l
/usr/local/bin/ |
grep
-
v
"
\(
../Cellar/
\|
brew
\)
"
|
wc
-l
)
-
1
))
"
packages="
$(($(
ls
-l
/usr/local/bin/ |
grep
-
cv
"
\(
../Cellar/
\|
brew
\)
"
)
-
1
))
"
type -p port >/dev/null &&
\
packages="
$((
packages
+
$(
port installed |
wc
-l
)
-
1
))
"
...
...
@@ -1688,7 +1688,7 @@ get_public_ip() {
fi
if [[ -z "
$public_ip
" ]] && type -p wget >/dev/null; then
public_ip="
$(
wget
-T
10
-qO-
"
$public_ip_host
"
;
printf
"%s"
)
"
public_ip="
$(
wget
-T
10
-qO-
"
$public_ip_host
"
)
"
fi
}
...
...
@@ -1900,7 +1900,7 @@ get_ascii() {
# Calculate size of ascii file in line length / line count.
line="${line//\$\{??\}}"
line="${line//
'
\\
'/'
\
'
}"
line="${line//
\\\\/\\
}"
(("${#line}" > "${ascii_length:-0}")) && ascii_length="${#line}"
lines="$((lines+=1))"
done < "$ascii"
...
...
@@ -2758,9 +2758,9 @@ dynamic_prompt() {
# Set the prompt location
if
((
"
$lines
"
< 0
))
;
then
printf
"
\0
33[
${
lines
/-
}
A"
printf
"
%b"
"
\0
33[
${
lines
/-
}
A"
else
printf
"
\0
33[
${
lines
}
B"
printf
"
%b"
"
\0
33[
${
lines
}
B"
fi
# Add some padding
...
...
@@ -2797,7 +2797,7 @@ cache_uname() {
usage
()
{
printf
"%s"
"
NEOFETCH
USAGE: neofetch --option
"
value
" --option "
value
"
USAGE: neofetch --option
\"
value
\"
--option
\"
value
\
"
NOTE: There's also a config option for each flag below.
...
...
@@ -3121,7 +3121,7 @@ main() {
display_image
# Set cursor position next to ascii art
printf
"
\0
33[
$((${
lines
:-
0
}
-
${
prompt_loc
:-
0
}))
A"
printf
"
%b"
"
\0
33[
$((${
lines
:-
0
}
-
${
prompt_loc
:-
0
}))
A"
# Reset horizontal cursor position
printf
"
\0
33[9999999D"
...
...
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