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
2987f957
Commit
2987f957
authored
Apr 24, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #226 from dylanaraps/error_msg
Error msg
parents
db1f3851
c26e8a3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
4 deletions
+38
-4
ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
+3
-1
1.7.md
1.7.md
+11
-2
neofetch
neofetch
+24
-1
No files found.
.github/ISSUE_TEMPLATE.md
View file @
2987f957
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
#### Operating system
#### Operating system
## Screenshot (If relevant)
## Verbose log
## Verbose log
**Neofetch 1.6**
**Neofetch 1.6**
...
@@ -16,7 +18,7 @@
...
@@ -16,7 +18,7 @@
**Neofetch 1.7**
**Neofetch 1.7**
2.
Run
`neofetch -
-verbose
2> neofetchlog`
2.
Run
`neofetch -
vv
2> neofetchlog`
3.
Upload the contents of
`neofetchlog`
to pastebin, gist or equivalent.
3.
Upload the contents of
`neofetchlog`
to pastebin, gist or equivalent.
...
...
1.7.md
View file @
2987f957
...
@@ -11,10 +11,19 @@ Thanks to the following people for contributing this release.
...
@@ -11,10 +11,19 @@ Thanks to the following people for contributing this release.
### General
### General
-
Made it easier to get verbose logs.
-
Made it easier to get verbose logs.
-
Added
`--verbose`
to print a verbose log to stdout.
\[
1
\]
-
Added issue template for github.
-
Added issue template for github.
\[
1
\]
Use
`neofetch --verbose 2> file`
to save a verbose log for bug reporting.
### Error Messages
Neofetch now supports displaying error messages and saving a verbose log for<br
\>
troubleshooting.

-
Added
`-v`
to print error messages to stdout.
-
Added
`-vv`
to print a verbose log to stdout.
\[
1
\]
\[
1
\]
Use
`neofetch -vv 2> file`
to save a verbose log for bug reporting.
### Info
### Info
...
...
neofetch
View file @
2987f957
...
@@ -1890,6 +1890,9 @@ getwallpaper () {
...
@@ -1890,6 +1890,9 @@ getwallpaper () {
# If img is an xml file don'
t
use it.
# If img is an xml file don'
t
use it.
[
"
${
img
/*\./
}
"
==
"xml"
] && img=
""
[
"
${
img
/*\./
}
"
==
"xml"
] && img=
""
# Error msg
[ -z
"
$img
"
] && err
"Wallpaper detection failed, falling back to ascii mode."
}
}
# }}}
# }}}
...
@@ -1898,6 +1901,10 @@ getwallpaper () {
...
@@ -1898,6 +1901,10 @@ getwallpaper () {
getascii () {
getascii () {
if [ ! -f "
$ascii
" ] || [ "
$ascii
" == "
distro
" ]; then
if [ ! -f "
$ascii
" ] || [ "
$ascii
" == "
distro
" ]; then
# Error message
[ "
$ascii
" != "
distro
" ] &&
\
[ ! -f "
$ascii
" ] && err "
Ascii
file not found, using distro ascii
"
# Lowercase the distro name
# Lowercase the distro name
if [ "
$version
" -le 3 ]; then
if [ "
$version
" -le 3 ]; then
ascii=
$(
tr
'[:upper:]'
'[:lower:]'
<<<
"
$ascii_distro
"
)
ascii=
$(
tr
'[:upper:]'
'[:lower:]'
<<<
"
$ascii_distro
"
)
...
@@ -1921,6 +1928,7 @@ getascii () {
...
@@ -1921,6 +1928,7 @@ getascii () {
if [ ! -f "
$script_dir
/ascii/distro/
${
ascii
/ *
}
" ]; then
if [ ! -f "
$script_dir
/ascii/distro/
${
ascii
/ *
}
" ]; then
padding="
\033[0C
"
padding="
\033[0C
"
image="
off
"
image="
off
"
err "
Ascii
file not found, falling back to text mode.
"
return
return
fi
fi
...
@@ -2008,6 +2016,11 @@ getimage () {
...
@@ -2008,6 +2016,11 @@ getimage () {
if [ ! -f "
$img
" ] || [
${#
term_size
}
-le 5 ]; then
if [ ! -f "
$img
" ] || [
${#
term_size
}
-le 5 ]; then
image="
ascii
"
image="
ascii
"
getascii
getascii
# Error messages
[ ! -f "
$img
" ] && err "
\
$img
, isn
't a file, falling back to ascii mode."
[ ${#term_size} -le 5 ] && err "Your terminal doesn'
t
support \\\033[14t, falling back to ascii mode.
"
return
return
fi
fi
...
@@ -2141,6 +2154,7 @@ getw3m_img_path () {
...
@@ -2141,6 +2154,7 @@ getw3m_img_path () {
else
else
image="
ascii
"
image="
ascii
"
err "
w3m
-img wasn
't found on your system, falling back to ascii mode."
fi
fi
}
}
...
@@ -2582,6 +2596,9 @@ kdeconfigdir () {
...
@@ -2582,6 +2596,9 @@ kdeconfigdir () {
# }}}
# }}}
err () {
err+="
$(
color 1
)
[!]
$(
color
fg
)
$1
\n
"
}
# }}}
# }}}
...
@@ -2891,7 +2908,8 @@ while [ "$1" ]; do
...
@@ -2891,7 +2908,8 @@ while [ "$1" ]; do
}
}
;;
;;
--verbose
)
set
-x
;;
-v) verbose="
on
" ;;
-vv) set -x; verbose="
on
" ;;
--help) usage ;;
--help) usage ;;
esac
esac
...
@@ -2983,4 +3001,9 @@ if [ "$scrot" == "on" ]; then
...
@@ -2983,4 +3001,9 @@ if [ "$scrot" == "on" ]; then
takescrot
takescrot
fi
fi
# Show error messages
if [ "
$verbose
" == "
on
" ]; then
printf "
$err
"
fi
# }}}
# }}}
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