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
3cf7c5ff
Commit
3cf7c5ff
authored
Mar 02, 2017
by
Dominik Ritter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only print non-ascii font if switch "use different font" is active
parent
e2d1cb27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
neofetch
neofetch
+8
-9
No files found.
neofetch
View file @
3cf7c5ff
...
...
@@ -1659,15 +1659,14 @@ get_term_font() {
# "
Normal Font
"
term_font=
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
idx
}
:Normal
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
# Font for non-ascii characters
# This font setting may differ from normal font, but this might be a false
# positive, as there is a setting to use a different font for non-ascii
# characters and this setting does not get updated when flipping the switch.
# So it might be that the user checked the mark to use a different font,
# selected one, but then decided to uncheck the "
use different font
" mark
# again.
local nonAsciiFont=
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
idx
}
:Non
\
Ascii
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
if [[ "
$term_font
" != "
$nonAsciiFont
" ]]; then
term_font="
$term_font
(
normal
)
/
$nonAsciiFont
(
non-ascii
)
"
# Only check for a different non-ascii font, if the user checked
# the "
use a different font
for
non-ascii text
" switch.
local useDifferentFont=
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
idx
}
:Use
\
Non-ASCII
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
if [[ "
$useDifferentFont
" == "
true
" ]]; then
local nonAsciiFont=
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
idx
}
:Non
\
Ascii
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
if [[ "
$term_font
" != "
$nonAsciiFont
" ]]; then
term_font="
$term_font
(
normal
)
/
$nonAsciiFont
(
non-ascii
)
"
fi
fi
fi
done
...
...
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