mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 02:36:30 +00:00
Update mac-files to create iterm2 path if not exists
This commit is contained in:
parent
65ee1457eb
commit
36dded3c04
@ -1,22 +1,24 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
# Link files that can't be sourced
|
# Link files that can't be sourced
|
||||||
try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
|
try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
|
||||||
|
|
||||||
# Download and/or link iTerm2 automatic dark mode profiles switching
|
# Download and/or link iTerm2 automatic dark mode profiles switching
|
||||||
iterm2_scripts="$HOME/Library/Application Support/iTerm2/Scripts"
|
ITERM2_SCRIPTS="$HOME/Library/Application Support/iTerm2/Scripts"
|
||||||
if [ -d "$iterm2_scripts" ]; then
|
if [ -d "$ITERM2_SCRIPTS" ]; then
|
||||||
if [ ! -f "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py" ]; then
|
DARK_MODE_FILE="$ITERM2_SCRIPTS/AutoLaunch/Auto_Dark_Mode_Colors.py"
|
||||||
curl -o "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py" \
|
if [ ! -f "$DARK_MODE_FILE" ]; then
|
||||||
"https://gitlab.com/snippets/1840760/raw?inline=false"
|
mkdir -p "$(dirname "$DARK_MODE_FILE")"
|
||||||
chmod +x "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py"
|
curl -o "$DARK_MODE_FILE" "https://gitlab.com/snippets/1840760/raw?inline=false"
|
||||||
|
chmod +x "$DARK_MODE_FILE"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Link various preferences that should be synced via iCloud
|
# Link various preferences that should be synced via iCloud
|
||||||
icloud_prefs="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Synced Preferences"
|
ICLOUD_PREFS="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Synced Preferences"
|
||||||
if [ -d "$icloud_prefs" ]; then
|
if [ -d "$ICLOUD_PREFS" ]; then
|
||||||
for f in "$icloud_prefs/Home/Library/Preferences/"*.plist ; do
|
for f in "$ICLOUD_PREFS/Home/Library/Preferences/"*.plist ; do
|
||||||
try_link "$f" "$HOME/Library/Preferences/$(basename "$f")"
|
try_link "$f" "$HOME/Library/Preferences/$(basename "$f")"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user