Add additional mac bootstrap stuff

This commit is contained in:
ViViDboarder 2019-04-09 18:16:10 -07:00
parent 26ccbb8594
commit 4e0fa1d8be
2 changed files with 19 additions and 1 deletions

View File

@ -50,6 +50,7 @@ fi
recipe 'dotfiles' recipe 'dotfiles'
recipe 'bin' recipe 'bin'
if [ "$(uname)" == 'Darwin' ]; then if [ "$(uname)" == 'Darwin' ]; then
recipe 'mac-files'
recipe 'mac-bin' recipe 'mac-bin'
fi fi
recipe 'git' recipe 'git'

17
recipes/default/mac-files Executable file
View File

@ -0,0 +1,17 @@
#! /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