shoestrap/recipes/default/mac-files

25 lines
908 B
Plaintext
Raw Permalink Normal View History

2019-04-10 01:16:10 +00:00
#! /bin/bash
2023-03-10 20:39:32 +00:00
set -e
2019-04-10 01:16:10 +00:00
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
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-10 01:16:10 +00:00
fi
fi
2023-03-08 23:01:23 +00: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