Latest
This commit is contained in:
parent
5798024e5d
commit
e092fe9eba
3 changed files with 33 additions and 33 deletions
|
@ -490,9 +490,9 @@ enableAutoUpdateDarwin() {
|
||||||
|
|
||||||
ensurePipUpdated() {
|
ensurePipUpdated() {
|
||||||
### python3.10 pip update
|
### python3.10 pip update
|
||||||
if command -v python3.10 > /dev/null; then
|
# if command -v python3.10 > /dev/null; then
|
||||||
logg info 'Ensuring python3.10 pip is updated' && python3.10 -m pip install --upgrade pip &
|
# logg info 'Ensuring python3.10 pip is updated' && python3.10 -m pip install --upgrade pip &
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
### python3.11 pip update
|
### python3.11 pip update
|
||||||
if command -v python3.11 > /dev/null; then
|
if command -v python3.11 > /dev/null; then
|
||||||
|
|
|
@ -685,9 +685,6 @@ defaults write com.apple.terminal SecureKeyboardEntry -bool true
|
||||||
# Disable the annoying line marks
|
# Disable the annoying line marks
|
||||||
defaults write com.apple.Terminal ShowLineMarks -int 0
|
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
|
# Don’t display the annoying prompt when quitting iTerm
|
||||||
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
|
defaults write com.googlecode.iterm2 PromptOnQuit -bool false
|
||||||
|
|
||||||
|
|
|
@ -676,36 +676,39 @@ apply_konsole() {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_darwin() {
|
apply_darwin() {
|
||||||
# |
|
### Skip iTerm.app terminal theme because it is already stored in ~/Library/Preferences
|
||||||
# | Applying values on iTerm2
|
if [ "$TERM_PROGRAM" != "iTerm.app" ]; then
|
||||||
# | ===========================================
|
# |
|
||||||
|
# | Applying values on iTerm2
|
||||||
|
# | ===========================================
|
||||||
|
|
||||||
BACKGROUND_COLOR=$(convertNameAndRGBtoITerm "Background Color" "$BACKGROUND_COLOR")
|
BACKGROUND_COLOR=$(convertNameAndRGBtoITerm "Background Color" "$BACKGROUND_COLOR")
|
||||||
FOREGROUND_COLOR=$(convertNameAndRGBtoITerm "Foreground Color" "$FOREGROUND_COLOR")
|
FOREGROUND_COLOR=$(convertNameAndRGBtoITerm "Foreground Color" "$FOREGROUND_COLOR")
|
||||||
COLOR_01=$(convertNameAndRGBtoITerm "Ansi 0 Color" "$COLOR_01")
|
COLOR_01=$(convertNameAndRGBtoITerm "Ansi 0 Color" "$COLOR_01")
|
||||||
COLOR_02=$(convertNameAndRGBtoITerm "Ansi 1 Color" "$COLOR_02")
|
COLOR_02=$(convertNameAndRGBtoITerm "Ansi 1 Color" "$COLOR_02")
|
||||||
COLOR_03=$(convertNameAndRGBtoITerm "Ansi 2 Color" "$COLOR_03")
|
COLOR_03=$(convertNameAndRGBtoITerm "Ansi 2 Color" "$COLOR_03")
|
||||||
COLOR_04=$(convertNameAndRGBtoITerm "Ansi 3 Color" "$COLOR_04")
|
COLOR_04=$(convertNameAndRGBtoITerm "Ansi 3 Color" "$COLOR_04")
|
||||||
COLOR_05=$(convertNameAndRGBtoITerm "Ansi 4 Color" "$COLOR_05")
|
COLOR_05=$(convertNameAndRGBtoITerm "Ansi 4 Color" "$COLOR_05")
|
||||||
COLOR_06=$(convertNameAndRGBtoITerm "Ansi 5 Color" "$COLOR_06")
|
COLOR_06=$(convertNameAndRGBtoITerm "Ansi 5 Color" "$COLOR_06")
|
||||||
COLOR_07=$(convertNameAndRGBtoITerm "Ansi 6 Color" "$COLOR_07")
|
COLOR_07=$(convertNameAndRGBtoITerm "Ansi 6 Color" "$COLOR_07")
|
||||||
COLOR_08=$(convertNameAndRGBtoITerm "Ansi 7 Color" "$COLOR_08")
|
COLOR_08=$(convertNameAndRGBtoITerm "Ansi 7 Color" "$COLOR_08")
|
||||||
COLOR_09=$(convertNameAndRGBtoITerm "Ansi 8 Color" "$COLOR_09")
|
COLOR_09=$(convertNameAndRGBtoITerm "Ansi 8 Color" "$COLOR_09")
|
||||||
COLOR_10=$(convertNameAndRGBtoITerm "Ansi 9 Color" "$COLOR_10")
|
COLOR_10=$(convertNameAndRGBtoITerm "Ansi 9 Color" "$COLOR_10")
|
||||||
COLOR_11=$(convertNameAndRGBtoITerm "Ansi 10 Color" "$COLOR_11")
|
COLOR_11=$(convertNameAndRGBtoITerm "Ansi 10 Color" "$COLOR_11")
|
||||||
COLOR_12=$(convertNameAndRGBtoITerm "Ansi 11 Color" "$COLOR_12")
|
COLOR_12=$(convertNameAndRGBtoITerm "Ansi 11 Color" "$COLOR_12")
|
||||||
COLOR_13=$(convertNameAndRGBtoITerm "Ansi 12 Color" "$COLOR_13")
|
COLOR_13=$(convertNameAndRGBtoITerm "Ansi 12 Color" "$COLOR_13")
|
||||||
COLOR_14=$(convertNameAndRGBtoITerm "Ansi 13 Color" "$COLOR_14")
|
COLOR_14=$(convertNameAndRGBtoITerm "Ansi 13 Color" "$COLOR_14")
|
||||||
COLOR_15=$(convertNameAndRGBtoITerm "Ansi 14 Color" "$COLOR_15")
|
COLOR_15=$(convertNameAndRGBtoITerm "Ansi 14 Color" "$COLOR_15")
|
||||||
COLOR_16=$(convertNameAndRGBtoITerm "Ansi 15 Color" "$COLOR_16")
|
COLOR_16=$(convertNameAndRGBtoITerm "Ansi 15 Color" "$COLOR_16")
|
||||||
|
|
||||||
# Assemble color scheme file contents
|
# Assemble color scheme file contents
|
||||||
ITERMCOLORS='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>'${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}'</dict></plist>'
|
ITERMCOLORS='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>'${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}'</dict></plist>'
|
||||||
|
|
||||||
# Dump iTerm color scheme to file and import it by opening it
|
# Dump iTerm color scheme to file and import it by opening it
|
||||||
echo "${ITERMCOLORS}" > "${PROFILE_NAME}.itermcolors"
|
echo "${ITERMCOLORS}" > "${PROFILE_NAME}.itermcolors"
|
||||||
open "${PROFILE_NAME}.itermcolors"
|
open "${PROFILE_NAME}.itermcolors"
|
||||||
rm "${PROFILE_NAME}.itermcolors"
|
rm "${PROFILE_NAME}.itermcolors"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_gtk() {
|
apply_gtk() {
|
||||||
|
|
Loading…
Reference in a new issue