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
8c783d63
Commit
8c783d63
authored
Mar 09, 2017
by
Dominik Ritter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newlines
parent
53eafeb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
neofetch
neofetch
+4
-0
No files found.
neofetch
View file @
8c783d63
...
@@ -1659,9 +1659,11 @@ get_term_font() {
...
@@ -1659,9 +1659,11 @@ get_term_font() {
# Count Guids in "
New Bookmarks
"; they should be unique
# Count Guids in "
New Bookmarks
"; they should be unique
local profiles_count
local profiles_count
profiles_count="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:"
~/Library/Preferences/com.googlecode.iterm2.plist 2>/dev/null |
grep
-c
"Guid"
)
"
profiles_count="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:"
~/Library/Preferences/com.googlecode.iterm2.plist 2>/dev/null |
grep
-c
"Guid"
)
"
for ((i=0; i<=profiles_count; i++)); do
for ((i=0; i<=profiles_count; i++)); do
local profile_name
local profile_name
profile_name="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Name:"
~/Library/Preferences/com.googlecode.iterm2.plist 2>/dev/null
)
"
profile_name="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Name:"
~/Library/Preferences/com.googlecode.iterm2.plist 2>/dev/null
)
"
if [[ "
$profile_name
" == "
$current_profile_name
" ]]; then
if [[ "
$profile_name
" == "
$current_profile_name
" ]]; then
# "
Normal Font
"
# "
Normal Font
"
term_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Normal
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
term_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Normal
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
...
@@ -1670,11 +1672,13 @@ get_term_font() {
...
@@ -1670,11 +1672,13 @@ get_term_font() {
# the "
use a different font
for
non-ascii text
" switch.
# the "
use a different font
for
non-ascii text
" switch.
local use_different_font
local use_different_font
use_different_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Use
\
Non-ASCII
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
use_different_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Use
\
Non-ASCII
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
if [[ "
$use_different_font
" == "
true
" ]]; then
if [[ "
$use_different_font
" == "
true
" ]]; then
local non_ascii_font
local non_ascii_font
non_ascii_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Non
\
Ascii
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
non_ascii_font="
$(
/usr/libexec/PlistBuddy
-c
"Print :New
\
Bookmarks:
${
i
}
:Non
\
Ascii
\
Font:"
~/Library/Preferences/com.googlecode.iterm2.plist
)
"
[[ "
$term_font
" != "
$non_ascii_font
" ]] &&
\
[[ "
$term_font
" != "
$non_ascii_font
" ]] &&
\
term_font="
$term_font
(
normal
)
/
$non_ascii_font
(
non-ascii
)
"
term_font="
$term_font
(
normal
)
/
$non_ascii_font
(
non-ascii
)
"
fi
fi
fi
fi
done
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