Merge branch 'master' into comp

This commit is contained in:
Dylan Araps 2018-06-05 06:18:45 +10:00
commit 23db006fb9
6 changed files with 856 additions and 829 deletions

View file

@ -9,14 +9,15 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
install:
# Install a custom version of shellcheck instead of Travis CI's default
- scversion="latest" # or "v0.4.7", or "latest"
- wget "https://storage.googleapis.com/shellcheck/shellcheck-${scversion}.linux.x86_64.tar.xz"
- tar --xz -xvf "shellcheck-${scversion}.linux.x86_64.tar.xz"
- shellcheck() { "shellcheck-${scversion}/shellcheck" "$@"; }
script: script:
- time ./neofetch --travis -v - time ./neofetch --travis -v
# See this wiki page for why we're disabling these errors. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch; fi
# https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010,SC1004,SC1091,SC1117; fi
# The if statement is here to invert the exit code from grep.
# grep normally errors if no match is found but we want the opposite.
# We invert it so grep fails if a match is found.
# Check for lines longer than 100 chars. # Check for lines longer than 100 chars.
# There are 3 lines that must be longer than 100 chars. - if grep '.\{102\}' neofetch; then (exit 1); else (exit 0); fi
- if (("$(grep '.\{101\}' neofetch | wc -l)" > 3)); then (exit 1); else (exit 0); fi

View file

@ -7,44 +7,80 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased] ## [Unreleased]
<img src="https://i.imgur.com/ZQI2EYz.png" alt="logo" height="100px">
**Contributors** **Contributors**
- [**@mstraube**](https://github.com/mstraube) - [**@mstraube**](https://github.com/mstraube)
- [**@iandrewt**](https://github.com/iandrewt") - [**@iandrewt**](https://github.com/iandrewt)
- [**@konimex**](https://github.com/konimex)
**Operating System** **Operating System**
- Added support for Condres OS. [**@mstraube**](https://github.com/mstraube)
- Added support for RedCore Linux. [**@mstraube**](https://github.com/mstraube) - Added support for RedCore Linux. [**@mstraube**](https://github.com/mstraube)
- Added support for Regata OS. [**@mstraube**](https://github.com/mstraube)
- Added support for PureOS.
- Added support for Kibojoe Linux.
- Added support for SharkLinux.
- Added support for Linux Lite.
**General** **General**
- [output] Added `--json` to output the info in `json`. - **output**: Added `--json` to output the info in `json`.
- [cursor] Fixed prompt location issues after Neofetch is run. - **cursor**: Fixed prompt location issues after Neofetch is run.
- [macOS] Fixed neofetch launching XQuartz. - **macOS**: Fixed neofetch launching XQuartz.
- [misc] Removed `uppercase()`. - **misc**: Removed `uppercase()`.
- [misc] Removed all instances of `export`. - **misc**: Removed all instances of `export`.
- **misc**: Removed all deprecated options and functions.
- **info**: Removed `get_install_date()`.
**Ascii** **Ascii**
- Fixed a bug causing Windows 7 ASCII art to not display. - Fixed a bug causing Windows 7 ASCII art to not display.
- Simplified ASCII art handling.
- Updated Funtoo ASCII art.
**Image** **Image**
- Improved performance of image handling.
- Removed `catimg` support (*It didnt allow us to specify height so we - Removed `catimg` support (*It didnt allow us to specify height so we
couldnt accurately place the cursor*). couldnt accurately place the cursor*).
- Fixed `tycat`, `sixel` and `kitty icat` image sizes. - Fixed `tycat`, `sixel` and `kitty icat` image sizes.
- Simplified `w3m-img` code.
**Screenshot** **Screenshot**
See: https://github.com/dylanaraps/neofetch/issues/1001
- Removed screenshot functionality. - Removed screenshot functionality.
- Removed screenshot upload functionality. - Removed screenshot upload functionality.
**Info** **Info**
- [font] Fix iTerm2 checking for 2 extra profiles that don't exist. [**@iandrewt**](https://github.com/iandrewt") - **cpu**: Remove extra call to `uname`.
- [gpu] Fixed ATI/AMD branding issue. - **cpu**: Simplify core calculation.
- [song] Fixed song detection on macOS. - **disk**: Clean up.
- [song] Fixed song output on systems using `C` locale. - **font**: Fix iTerm2 checking for 2 extra profiles that don't exist.
[**@iandrewt**](https://github.com/iandrewt")
- **gpu**: Fixed ATI/AMD branding issue.
- **gpu**: Removed `glxinfo` usage (*too slow*).
- **packages**: Added support for `flatpak`.
[**@konimex**](https://github.com/konimex)
- **packages**: Added support for `snap`.
[**@konimex**](https://github.com/konimex)
- **packages**: Added used package managers to output (`Packages: 900
(pacman, snap)`).
- **packages**: Fixed issues with `pacman` 5.1.
- **packages**: Removed `find` usage.
- **packages**: Removed `ls` usage.
- **packages**: Removed `wc -l` usage.
- **song**: Added support for `gmusicbrowser`.
[**@mstraube**](https://github.com/mstraube)
- **song**: Fixed song detection on macOS.
- **song**: Fixed song output on systems using `C` locale.
- **term\_font**: Clean up of config file handling.
- **resolution**: Added support for `xwininfo`.
## [4.0.2] - 2018-05-19 ## [4.0.2] - 2018-05-19

View file

@ -23,20 +23,15 @@
and variable names. and variable names.
- Keep lines below `100` characters long. - Keep lines below `100` characters long.
- Use `[[ ]]` for tests. - Use `[[ ]]` for tests.
- Double Quote **EVERYTHING**. - Quote **EVERYTHING**.
- Dont use single quotes, except for special cases.
### ShellCheck ### ShellCheck
For your contribution to be accepted, your changes need to pass For your contribution to be accepted, your changes need to pass
ShellCheck. ShellCheck.
Run ShellCheck with the following command:
```sh ```sh
# Why do we exclude numerous tests? shellcheck neofetch
# See: https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010,SC1004,SC1091,SC1117
``` ```
**Note**: If you have trouble installing ShellCheck. You can open a pull **Note**: If you have trouble installing ShellCheck. You can open a pull
@ -58,6 +53,8 @@ request on the repo and our Travis.ci hook will run ShellCheck for you.
- Use `bash`'s built-in syntax (`file="$(< /path/to/file.txt)")`). - Use `bash`'s built-in syntax (`file="$(< /path/to/file.txt)")`).
- Dont use `grep "pattern" | awk '{ printf }'`. - Dont use `grep "pattern" | awk '{ printf }'`.
- Use `awk '/pattern/ { printf }'` - Use `awk '/pattern/ { printf }'`
- Dont use `wc`.
- Use `${#var}` or `${#arr[@]}`.
### If Statements ### If Statements

View file

@ -42,6 +42,7 @@ Neofetch supports almost 150 different operating systems. From Linux to Windows,
- https://www.tecmint.com/neofetch-shows-linux-system-information-with-logo/ - https://www.tecmint.com/neofetch-shows-linux-system-information-with-logo/
- https://www.youtube.com/watch?v=bgepGW858fc - https://www.youtube.com/watch?v=bgepGW858fc
- https://www.linuxuprising.com/2018/05/display-system-information-on-linux.html - https://www.linuxuprising.com/2018/05/display-system-information-on-linux.html
- https://esgeeks.com/neofetch-informacion-sistema-linux/
## Thanks ## Thanks

1427
neofetch

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
.TH NEOFETCH "1" "May 2018" "Neofetch 4.0.3" "User Commands" .TH NEOFETCH "1" "June 2018" "Neofetch 4.0.3" "User Commands"
.SH NAME .SH NAME
Neofetch \- A fast, highly customizable system info script Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS .SH SYNOPSIS
@ -22,6 +22,9 @@ For example: 'info "Memory" memory' would be '\-\-disable memory'
.IP .IP
NOTE: You can supply multiple args. eg. 'neofetch \fB\-\-disable\fR cpu gpu' NOTE: You can supply multiple args. eg. 'neofetch \fB\-\-disable\fR cpu gpu'
.TP .TP
\fB\-\-package_managers\fR on/off
Hide/Show Package Manager names.
.TP
\fB\-\-os_arch\fR on/off \fB\-\-os_arch\fR on/off
Hide/Show OS architecture. Hide/Show OS architecture.
.TP .TP
@ -126,12 +129,6 @@ Print the Artist/Album/Title on separate lines.
\fB\-\-music_player\fR player\-name \fB\-\-music_player\fR player\-name
Manually specify a player to use. Manually specify a player to use.
Available values are listed in the config file Available values are listed in the config file
.TP
\fB\-\-install_time\fR on/off
Enable/Disable showing the time in Install Date output.
.TP
\fB\-\-install_time_format\fR 12h/24h
Set time format in Install Date to be 12 hour or 24 hour.
.SS "TEXT FORMATTING:" .SS "TEXT FORMATTING:"
.TP .TP
\fB\-\-colors\fR x x x x x x \fB\-\-colors\fR x x x x x x