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
c6c60306
Commit
c6c60306
authored
Aug 04, 2017
by
Muhammad Herdiansyah
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'pullreq/pr/799'
parents
e9f6ffc2
faa71d0f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
4 deletions
+31
-4
CHANGELOG.md
CHANGELOG.md
+1
-0
config.conf
config/config.conf
+6
-0
neofetch
neofetch
+20
-3
neofetch.1
neofetch.1
+4
-1
No files found.
CHANGELOG.md
View file @
c6c60306
...
...
@@ -8,6 +8,7 @@
-
Config file now has a
`.conf`
suffix.
-
Neofetch now assumes target directories (config file and ASCII directory) at install time, this fixes problems with systems such as NixOS.
-
`stdout`
mode is now reimplemented.
## Operating System
...
...
config/config.conf
View file @
c6c60306
...
...
@@ -717,6 +717,12 @@ image_host="teknik"
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout
=
"off"
# Config version.
#
...
...
neofetch
View file @
c6c60306
...
...
@@ -2801,7 +2801,7 @@ prin() {
string="${subtitle_color}${bold}${string}"
# Print the info.
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${string}${reset}
"
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${string}${reset}"
# Calculate info height.
((++info_height))
...
...
@@ -2813,7 +2813,7 @@ prin() {
get_underline() {
if [[ "$underline_enabled" == "on" ]]; then
printf -v underline "%${length}s"
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline_color}${underline// /$underline_char}${reset}
"
printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline_color}${underline// /$underline_char}${reset}"
unset -v length
fi
prin=1
...
...
@@ -3636,6 +3636,20 @@ color() {
# OTHER
stdout() {
image_backend="
off
"
unset subtitle_color
unset colon_color
unset info_color
unset underline_color
unset bold
unset title_color
unset at_color
unset text_padding
unset zws
unset reset
}
err() {
err+="
$(
color 1
)
[!]
\0
33[0m
$1
\n
"
}
...
...
@@ -4184,6 +4198,7 @@ SCREENSHOT:
OTHER:
--config /path/to/config Specify a path to a custom config file
--config none Launch the script without a config file
--stdout Turn off all colors and disables any ASCII/image backend.
--help Print this text and exit
--version Show neofetch version
-v Display error messages.
...
...
@@ -4401,6 +4416,7 @@ get_args() {
;;
esac
;;
"--stdout"
)
stdout
=
"on"
;;
"-v"
)
verbose
=
"on"
;;
"-vv"
)
set
-x
;
verbose
=
"on"
;;
"--help"
)
usage
;;
...
...
@@ -4421,9 +4437,10 @@ main() {
get_distro
get_bold
get_distro_colors
[[
"
$stdout
"
==
"on"
]]
&&
stdout
# Minix doesn't support these sequences.
if
[[
"
$TERM
"
!=
"minix"
]]
;
then
if
[[
"
$TERM
"
!=
"minix"
&&
"
$stdout
"
!=
"on"
]]
;
then
# If the script exits for any reason, unhide the cursor.
trap
'printf "\033[?25h\033[?7h"'
EXIT
...
...
neofetch.1
View file @
c6c60306
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
.TH NEOFETCH "1" "
July
2017" "Neofetch 3.2.1-git" "User Commands"
.TH NEOFETCH "1" "
August
2017" "Neofetch 3.2.1-git" "User Commands"
.SH NAME
Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS
...
...
@@ -304,6 +304,9 @@ Specify a path to a custom config file
\fB\-\-config\fR none
Launch the script without a config file
.TP
\fB\-\-stdout\fR
Turn off all colors and disables any ASCII/image backend.
.TP
\fB\-\-help\fR
Print this text and exit
.TP
...
...
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