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
aaf4a549
Unverified
Commit
aaf4a549
authored
Sep 22, 2019
by
Steve Forget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed line length compliance
parent
f481d9f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
neofetch
neofetch
+6
-5
No files found.
neofetch
View file @
aaf4a549
...
...
@@ -3208,7 +3208,7 @@ END
local ce_arg_idx
local ce_conf
# Could have used `eval set -- "$ConEmuArgs"` instead for arg parsing
but eval is evil...
# Could have used `eval set -- "$ConEmuArgs"` instead for arg parsing
readarray -t ce_arg_list < <(xargs -n1 printf "%s\n" <<< "${ConEmuArgs-}")
for ce_arg_idx in "${!ce_arg_list[@]}"; do
...
...
@@ -3237,13 +3237,14 @@ END
[[ ! -f "$ce_conf" ]] && continue
# Very basic XML parsing
term_font="$(awk '/name="FontName"/ && match($0, /data="([^"]*)"/) {print substr($0, RSTART+6, RLENGTH-7)}' "$ce_conf")"
term_font="$(awk '/name="FontName"/ && match($0, /data="([^"]*)"/) \
{print substr($0, RSTART+6, RLENGTH-7)}' "$ce_conf")"
break
done
# Null-terminated contents in /proc/registry files triggers a Bash warning
. Use read instead
[[ -z "$term_font" ]] && \
read -r term_font <
/proc/registry/HKEY_CURRENT_USER/Software/ConEmu/.Vanilla/FontName
# Null-terminated contents in /proc/registry files triggers a Bash warning
[[ -z "$term_font" ]] &&
read -r term_font <
\
/proc/registry/HKEY_CURRENT_USER/Software/ConEmu/.Vanilla/FontName
;;
esac
}
...
...
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