Commit 040a9648 authored by Dylan Araps's avatar Dylan Araps

Merge master

parents 16c4a9a8 a14cba70
......@@ -5,7 +5,6 @@
## Contributors
## Info
**Distro**<br \>
......
......@@ -1455,6 +1455,7 @@ getterm() {
case "$TERM_PROGRAM" in
"iTerm.app") term="iTerm2" ;;
"Terminal.app") term="Apple Terminal" ;;
"Hyper") term="HyperTerm" ;;
*) term="${TERM_PROGRAM/\.app}" ;;
esac
return
......@@ -1534,6 +1535,10 @@ gettermfont() {
termfont="${termfont/.pcf}"
termfont="${termfont/:*}"
;;
"Hyper"*)
termfont="$(awk -F "," '/fontFamily/ {a=$1} END{print a}' "${HOME}/.hyper.js" | awk -F "'" '{a=$2} END{print a}')"
;;
esac
[ "$version" -ge 4 ] && termfont="${termfont^}"
......@@ -2302,15 +2307,15 @@ info() {
eval output="\$${2}"
fi
# Trim whitespace
output="$(trim "$output")"
# If the output is empty, don't print anything
if [ -z "$output" ]; then
err "Info: Couldn't detect $subtitle"
return
fi
# Trim whitespace
output="$(trim "$output")"
case "$1" in
title)
string="${title_color}${bold}${output}"
......@@ -2631,7 +2636,7 @@ bold() {
# Linebreak {{{
getlinebreak() {
linebreak=" "
linebreak=" "
# Calculate info height
info_height="$((info_height+=1))"
......@@ -3189,7 +3194,7 @@ getargs() {
-v) verbose="on" ;;
-vv) set -x; verbose="on" ;;
--help) usage ;;
--version) printf "%s\n" "Neofetch 2.0"; exit ;;
--version) printf "%s\n" "Neofetch 1.9.1"; exit ;;
esac
shift
......
.TH NEOFETCH "1" "June 2016" "2.0" "User Commands"
.TH NEOFETCH "1" "November 2016" "1.9.1" "User Commands"
.SH NAME
neofetch \- simple system information script
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment