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
462d4c59
Commit
462d4c59
authored
Nov 02, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prin: Fix bold not working, Add prin tests to travis
parent
00f22df3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
neofetch
neofetch
+8
-5
No files found.
neofetch
View file @
462d4c59
...
...
@@ -2348,13 +2348,10 @@ info() {
# Prin {{{
prin
()
{
string
=
"
$
1
${
2
:+:
$2
}
"
string
=
"
$
{
1
//
$'
\0
33[0m'
}
${
2
:+:
$2
}
"
# If $2 doesn't exist we format $1 as info
if
[
-z
"
$2
"
]
;
then
local
subtitle_color
=
"
$info_color
"
bold
=
fi
[
-z
"
$2
"
]
&&
local
subtitle_color
=
"
$info_color
"
# Format the output
string
=
"
${
string
/
:/
${
reset
}${
colon_color
}
:
${
info_color
}}
"
...
...
@@ -3195,6 +3192,12 @@ getargs() {
done
info linebreak
prin
"PRIN TEST"
"
$(
color 1
)
1
$(
color 2
)
2
$(
color 3
)
3"
prin
"SUBTITLE"
prin
"
$(
color 5
)
SUBTITLE2"
info linebreak
info cols
info linebreak
printf
"%b%s"
"
\0
33[
$(
tput lines
)
H"
...
...
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