25 lines
908 B
Plaintext
Raw Permalink Normal View History

2019-04-09 18:16:10 -07:00
#! /bin/bash
2023-03-10 12:39:32 -08:00
set -e
2019-04-09 18:16:10 -07:00
2019-11-12 18:01:52 -08:00
# Link files that can't be sourced
try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
2019-11-04 09:52:27 -08:00
# Download and/or link iTerm2 automatic dark mode profiles switching
ITERM2_SCRIPTS="$HOME/Library/Application Support/iTerm2/Scripts"
if [ -d "$ITERM2_SCRIPTS" ]; then
DARK_MODE_FILE="$ITERM2_SCRIPTS/AutoLaunch/Auto_Dark_Mode_Colors.py"
if [ ! -f "$DARK_MODE_FILE" ]; then
mkdir -p "$(dirname "$DARK_MODE_FILE")"
curl -o "$DARK_MODE_FILE" "https://gitlab.com/snippets/1840760/raw?inline=false"
chmod +x "$DARK_MODE_FILE"
2019-04-09 18:16:10 -07:00
fi
fi
2023-03-08 15:01:23 -08:00
# # 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