shoestrap/recipes/default/mac-files

23 lines
855 B
Plaintext
Raw Permalink Normal View History

2019-04-10 01:16:10 +00:00
#! /bin/bash
2019-11-13 02:01:52 +00:00
# Link files that can't be sourced
try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
2019-11-04 17:52:27 +00:00
# Download and/or link iTerm2 automatic dark mode profiles switching
2019-04-10 01:16:10 +00:00
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
2019-11-04 17:52:27 +00:00
# Link various preferences that should be synced via iCloud
2019-04-10 01:16:10 +00:00
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