mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c9bda1dd09 | ||
|
c814f14726 | ||
|
992d0b38ae | ||
|
c782af6a06 | ||
|
80299bd064 | ||
|
c69e5ef041 | ||
|
19d35b995d |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -7,13 +7,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- [config] Fixed `/dev/stdin` error.
|
||||
- [config] Added `--print_config` to display the default config file.
|
||||
- [macOS] Fixed xquartz issue.
|
||||
|
||||
|
||||
## [4.0.1] - 2018-05-18
|
||||
|
||||
### Note: This release is only required for those running `bash <3.3`.
|
||||
|
||||
- [config] Fixed issue with default config in bash3.
|
||||
- [packages] Simplified code.
|
||||
- [term] Fixed macOS issue.
|
||||
- [term] Fixed `tmux` issue.
|
||||
|
||||
|
||||
## [4.0.0] - 2018-05-17
|
||||
|
||||
<h1><img src="https://i.imgur.com/JFxwJtU.png" alt="logo" height="100px"></h1>
|
||||
|
||||
This release bumps the version number up to `4.0.0` as it contains major
|
||||
changes to how Neofetch is packaged and installed.
|
||||
|
||||
@@ -2662,7 +2674,8 @@ Changelog:
|
||||
Let me know if you're having issues.
|
||||
|
||||
|
||||
[Unreleased]: https://github.com/dylanaraps/neofetch/compare/4.0.0...HEAD
|
||||
[Unreleased]: https://github.com/dylanaraps/neofetch/compare/4.0.1...HEAD
|
||||
[4.0.1]: https://github.com/dylanaraps/neofetch/compare/4.0.0...4.0.1
|
||||
[4.0.0]: https://github.com/dylanaraps/neofetch/compare/3.4.0...4.0.0
|
||||
[3.4.0]: https://github.com/dylanaraps/neofetch/compare/3.3.0...3.4.0
|
||||
[3.3.0]: https://github.com/dylanaraps/neofetch/compare/3.2.0...3.3.0
|
||||
|
18
neofetch
18
neofetch
@@ -27,7 +27,7 @@
|
||||
# SOFTWARE.
|
||||
|
||||
# Neofetch version.
|
||||
version="4.0.1"
|
||||
version="4.0.2"
|
||||
|
||||
bash_version="${BASH_VERSION/.*}"
|
||||
sys_locale="${LANG:-C}"
|
||||
@@ -826,12 +826,6 @@ image_host="teknik"
|
||||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
stdout="off"
|
||||
|
||||
# Config version.
|
||||
#
|
||||
# NOTE: Don't change this value, neofetch reads this to determine
|
||||
# how to handle backwards compatibility.
|
||||
config_version="4.0.1"
|
||||
EOF
|
||||
|
||||
# DETECT INFORMATION
|
||||
@@ -3692,6 +3686,11 @@ get_term_size() {
|
||||
term_width="${term_size[2]/t*}"
|
||||
fi
|
||||
|
||||
# If the sequences above don't work and the user is on a macOS system
|
||||
# or a system not running an X server, return early.
|
||||
[[ -z "$DISPLAY" || "$os" == "Mac OS X" ]] && \
|
||||
{ term_width=0; return; }
|
||||
|
||||
# Get terminal width/height if \e[14t is unsupported.
|
||||
if [[ -z "$term_width" ]] || (( "$term_width" < 50 )); then
|
||||
if type -p xdotool >/dev/null 2>&1; then
|
||||
@@ -4815,6 +4814,7 @@ SCREENSHOT:
|
||||
OTHER:
|
||||
--config /path/to/config Specify a path to a custom config file
|
||||
--config none Launch the script without a config file
|
||||
--print_config Print the default config file to stdout.
|
||||
--stdout Turn off all colors and disables any ASCII/image backend.
|
||||
--help Print this text and exit
|
||||
--version Show neofetch version
|
||||
@@ -5007,6 +5007,7 @@ get_args() {
|
||||
;;
|
||||
"--stdout") stdout="on" ;;
|
||||
"-v") verbose="on" ;;
|
||||
"--print_config") printf "%s\\n" "$config"; exit ;;
|
||||
"-vv") set -x; verbose="on" ;;
|
||||
"--help") usage ;;
|
||||
"--version")
|
||||
@@ -8679,7 +8680,7 @@ main() {
|
||||
get_os
|
||||
|
||||
# Load default config.
|
||||
source /dev/stdin <<< "$config"
|
||||
eval "$config"
|
||||
|
||||
get_args "$@"
|
||||
[[ "$verbose" != "on" ]] && exec 2>/dev/null
|
||||
@@ -8713,7 +8714,6 @@ main() {
|
||||
# Add neofetch info to verbose output.
|
||||
err "Neofetch command: $0 $*"
|
||||
err "Neofetch version: $version"
|
||||
err "Neofetch config: $config_version"
|
||||
|
||||
# Show error messages.
|
||||
[[ "$verbose" == "on" ]] && printf "%b" "$err" >&2
|
||||
|
@@ -1,5 +1,5 @@
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
|
||||
.TH NEOFETCH "1" "May 2018" "Neofetch 4.0.1" "User Commands"
|
||||
.TH NEOFETCH "1" "May 2018" "Neofetch 4.0.2" "User Commands"
|
||||
.SH NAME
|
||||
Neofetch \- A fast, highly customizable system info script
|
||||
.SH SYNOPSIS
|
||||
@@ -326,6 +326,9 @@ Specify a path to a custom config file
|
||||
\fB\-\-config\fR none
|
||||
Launch the script without a config file
|
||||
.TP
|
||||
\fB\-\-print_config\fR
|
||||
Print the default config file to stdout.
|
||||
.TP
|
||||
\fB\-\-stdout\fR
|
||||
Turn off all colors and disables any ASCII/image backend.
|
||||
.TP
|
||||
|
Reference in New Issue
Block a user