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
8e56495d
Commit
8e56495d
authored
Apr 16, 2020
by
Crestwave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: remove unnecessary(?) parameter expansion and BASH_VERSINFO
parent
c2fcf35a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neofetch
neofetch
+4
-4
No files found.
neofetch
View file @
8e56495d
...
...
@@ -30,8 +30,8 @@
version=7.0.0
if [[ "$
BASH_VERSION
" ]]; then
bash_version=${BASH_VERSI
ON/.*
}
if [[ "$
{BASH_VERSINFO[0]}
" ]]; then
bash_version=${BASH_VERSI
NFO[0]
}
else
bash_version=5
shopt -s eval_unsafe_arith
...
...
@@ -3992,7 +3992,7 @@ get_window_size() {
#
# False positive.
# shellcheck disable=2141
case $
{BASH_VERSINFO[0]}
in
case $
bash_version
in
4|5) IFS=';t' read -d t -t 0.05 -sra term_size ;;
*) IFS=';t' read -d t -t 1 -sra term_size ;;
esac
...
...
@@ -4240,7 +4240,7 @@ display_image() {
# Add a tiny delay to fix issues with images not
# appearing in specific terminal emulators.
((
BASH_VERSINFO[0]
>3)) && sleep 0.05
((
bash_version
>3)) && sleep 0.05
printf '%b\n%s;\n%s\n' "0;1;$xoffset;$yoffset;$width;$height;;;;;$image" 3 4 |\
"${w3m_img_path:-false}" -bg "$background_color" &>/dev/null
;;
...
...
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