From e092fe9eba25f18718b80174ed0de4428ca57ef0 Mon Sep 17 00:00:00 2001
From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com>
Date: Mon, 25 Dec 2023 04:12:21 +0000
Subject: [PATCH] Latest
---
.../run_after_01-pre-install.sh.tmpl | 6 +-
home/dot_config/shell/macos.sh.tmpl | 3 -
.../executable_install-terminal-theme.tmpl | 57 ++++++++++---------
3 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/home/.chezmoiscripts/universal/run_after_01-pre-install.sh.tmpl b/home/.chezmoiscripts/universal/run_after_01-pre-install.sh.tmpl
index 677eaad6..76a49224 100644
--- a/home/.chezmoiscripts/universal/run_after_01-pre-install.sh.tmpl
+++ b/home/.chezmoiscripts/universal/run_after_01-pre-install.sh.tmpl
@@ -490,9 +490,9 @@ enableAutoUpdateDarwin() {
ensurePipUpdated() {
### python3.10 pip update
- if command -v python3.10 > /dev/null; then
- logg info 'Ensuring python3.10 pip is updated' && python3.10 -m pip install --upgrade pip &
- fi
+ # if command -v python3.10 > /dev/null; then
+ # logg info 'Ensuring python3.10 pip is updated' && python3.10 -m pip install --upgrade pip &
+ # fi
### python3.11 pip update
if command -v python3.11 > /dev/null; then
diff --git a/home/dot_config/shell/macos.sh.tmpl b/home/dot_config/shell/macos.sh.tmpl
index f6687975..2e51b4de 100644
--- a/home/dot_config/shell/macos.sh.tmpl
+++ b/home/dot_config/shell/macos.sh.tmpl
@@ -685,9 +685,6 @@ defaults write com.apple.terminal SecureKeyboardEntry -bool true
# Disable the annoying line marks
defaults write com.apple.Terminal ShowLineMarks -int 0
-# Install the Solarized Dark theme for iTerm
-# open "${HOME}/init/Solarized Dark.itermcolors"
-
# Don’t display the annoying prompt when quitting iTerm
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
diff --git a/home/dot_local/bin/executable_install-terminal-theme.tmpl b/home/dot_local/bin/executable_install-terminal-theme.tmpl
index 8e0618ec..50875517 100644
--- a/home/dot_local/bin/executable_install-terminal-theme.tmpl
+++ b/home/dot_local/bin/executable_install-terminal-theme.tmpl
@@ -676,36 +676,39 @@ apply_konsole() {
}
apply_darwin() {
- # |
- # | Applying values on iTerm2
- # | ===========================================
+ ### Skip iTerm.app terminal theme because it is already stored in ~/Library/Preferences
+ if [ "$TERM_PROGRAM" != "iTerm.app" ]; then
+ # |
+ # | Applying values on iTerm2
+ # | ===========================================
- BACKGROUND_COLOR=$(convertNameAndRGBtoITerm "Background Color" "$BACKGROUND_COLOR")
- FOREGROUND_COLOR=$(convertNameAndRGBtoITerm "Foreground Color" "$FOREGROUND_COLOR")
- COLOR_01=$(convertNameAndRGBtoITerm "Ansi 0 Color" "$COLOR_01")
- COLOR_02=$(convertNameAndRGBtoITerm "Ansi 1 Color" "$COLOR_02")
- COLOR_03=$(convertNameAndRGBtoITerm "Ansi 2 Color" "$COLOR_03")
- COLOR_04=$(convertNameAndRGBtoITerm "Ansi 3 Color" "$COLOR_04")
- COLOR_05=$(convertNameAndRGBtoITerm "Ansi 4 Color" "$COLOR_05")
- COLOR_06=$(convertNameAndRGBtoITerm "Ansi 5 Color" "$COLOR_06")
- COLOR_07=$(convertNameAndRGBtoITerm "Ansi 6 Color" "$COLOR_07")
- COLOR_08=$(convertNameAndRGBtoITerm "Ansi 7 Color" "$COLOR_08")
- COLOR_09=$(convertNameAndRGBtoITerm "Ansi 8 Color" "$COLOR_09")
- COLOR_10=$(convertNameAndRGBtoITerm "Ansi 9 Color" "$COLOR_10")
- COLOR_11=$(convertNameAndRGBtoITerm "Ansi 10 Color" "$COLOR_11")
- COLOR_12=$(convertNameAndRGBtoITerm "Ansi 11 Color" "$COLOR_12")
- COLOR_13=$(convertNameAndRGBtoITerm "Ansi 12 Color" "$COLOR_13")
- COLOR_14=$(convertNameAndRGBtoITerm "Ansi 13 Color" "$COLOR_14")
- COLOR_15=$(convertNameAndRGBtoITerm "Ansi 14 Color" "$COLOR_15")
- COLOR_16=$(convertNameAndRGBtoITerm "Ansi 15 Color" "$COLOR_16")
+ BACKGROUND_COLOR=$(convertNameAndRGBtoITerm "Background Color" "$BACKGROUND_COLOR")
+ FOREGROUND_COLOR=$(convertNameAndRGBtoITerm "Foreground Color" "$FOREGROUND_COLOR")
+ COLOR_01=$(convertNameAndRGBtoITerm "Ansi 0 Color" "$COLOR_01")
+ COLOR_02=$(convertNameAndRGBtoITerm "Ansi 1 Color" "$COLOR_02")
+ COLOR_03=$(convertNameAndRGBtoITerm "Ansi 2 Color" "$COLOR_03")
+ COLOR_04=$(convertNameAndRGBtoITerm "Ansi 3 Color" "$COLOR_04")
+ COLOR_05=$(convertNameAndRGBtoITerm "Ansi 4 Color" "$COLOR_05")
+ COLOR_06=$(convertNameAndRGBtoITerm "Ansi 5 Color" "$COLOR_06")
+ COLOR_07=$(convertNameAndRGBtoITerm "Ansi 6 Color" "$COLOR_07")
+ COLOR_08=$(convertNameAndRGBtoITerm "Ansi 7 Color" "$COLOR_08")
+ COLOR_09=$(convertNameAndRGBtoITerm "Ansi 8 Color" "$COLOR_09")
+ COLOR_10=$(convertNameAndRGBtoITerm "Ansi 9 Color" "$COLOR_10")
+ COLOR_11=$(convertNameAndRGBtoITerm "Ansi 10 Color" "$COLOR_11")
+ COLOR_12=$(convertNameAndRGBtoITerm "Ansi 11 Color" "$COLOR_12")
+ COLOR_13=$(convertNameAndRGBtoITerm "Ansi 12 Color" "$COLOR_13")
+ COLOR_14=$(convertNameAndRGBtoITerm "Ansi 13 Color" "$COLOR_14")
+ COLOR_15=$(convertNameAndRGBtoITerm "Ansi 14 Color" "$COLOR_15")
+ COLOR_16=$(convertNameAndRGBtoITerm "Ansi 15 Color" "$COLOR_16")
- # Assemble color scheme file contents
- ITERMCOLORS=''${BACKGROUND_COLOR}${FOREGROUND_COLOR}${COLOR_01}${COLOR_02}${COLOR_03}${COLOR_04}${COLOR_05}${COLOR_06}${COLOR_07}${COLOR_08}${COLOR_09}${COLOR_10}${COLOR_11}${COLOR_12}${COLOR_13}${COLOR_14}${COLOR_15}''
+ # Assemble color scheme file contents
+ ITERMCOLORS=''${BACKGROUND_COLOR}${FOREGROUND_COLOR}${COLOR_01}${COLOR_02}${COLOR_03}${COLOR_04}${COLOR_05}${COLOR_06}${COLOR_07}${COLOR_08}${COLOR_09}${COLOR_10}${COLOR_11}${COLOR_12}${COLOR_13}${COLOR_14}${COLOR_15}''
- # Dump iTerm color scheme to file and import it by opening it
- echo "${ITERMCOLORS}" > "${PROFILE_NAME}.itermcolors"
- open "${PROFILE_NAME}.itermcolors"
- rm "${PROFILE_NAME}.itermcolors"
+ # Dump iTerm color scheme to file and import it by opening it
+ echo "${ITERMCOLORS}" > "${PROFILE_NAME}.itermcolors"
+ open "${PROFILE_NAME}.itermcolors"
+ rm "${PROFILE_NAME}.itermcolors"
+ fi
}
apply_gtk() {