shoestrap/recipes/default/mac-files
2019-11-21 12:05:52 -08:00

23 lines
855 B
Bash
Executable File

#! /bin/bash
# Link files that can't be sourced
try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
# Download and/or link iTerm2 automatic dark mode profiles switching
iterm2_scripts="$HOME/Library/Application Support/iTerm2/Scripts"
if [ -d "$iterm2_scripts" ]; then
if [ ! -f "$iterm2_scripts/Auto_Dark_Mode_Colors.py" ]; then
curl -o "$iterm2_scripts/Auto_Dark_Mode_Colors.py" \
"https://gitlab.com/snippets/1840760/raw?inline=false"
chmod +x "$iterm2_scripts/Auto_Dark_Mode_Colors.py"
fi
fi
# Link various preferences that should be synced via iCloud
icloud_prefs="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Synced Preferences"
if [ -d "$icloud_prefs" ]; then
for f in "$icloud_prefs/Home/Library/Preferences/"*.plist ; do
try_link "$f" "$HOME/Library/Preferences/$(basename "$f")"
done
fi