shoestrap/recipes/default/mac-files
2019-04-09 18:16:10 -07:00

18 lines
642 B
Bash
Executable File

#! /bin/bash
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
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