Compare commits

...

7 Commits
4.0.1 ... 4.0.2

Author SHA1 Message Date
Dylan Araps
c9bda1dd09 docs: update 2018-05-20 07:56:46 +10:00
Dylan Araps
c814f14726 general: Fix issues with default config. 2018-05-19 20:38:45 +10:00
Dylan Araps
992d0b38ae general: Added --print_config to display the default config file. 2018-05-19 08:28:10 +10:00
Dylan Araps
c782af6a06 Merge branch 'master' of github.com:dylanaraps/neofetch 2018-05-19 08:06:22 +10:00
Dylan Araps
80299bd064 macOS: Fix xquartz issue. 2018-05-19 08:06:05 +10:00
Dylan Araps
c69e5ef041 docs: update 2018-05-18 16:26:22 +10:00
Dylan Araps
19d35b995d docs: update 2018-05-18 16:25:46 +10:00
3 changed files with 27 additions and 11 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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