Update path for iterm autolaunch scripts

This commit is contained in:
ViViDboarder 2021-10-22 14:44:37 -07:00
parent ebdbe2a071
commit c8d635e9eb

View File

@ -6,10 +6,10 @@ try_link "tmuxline.conf" "$HOME/.tmuxline.conf"
# Download and/or link iTerm2 automatic dark mode profiles switching
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" \
if [ ! -f "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py" ]; then
curl -o "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py" \
"https://gitlab.com/snippets/1840760/raw?inline=false"
chmod +x "$iterm2_scripts/Auto_Dark_Mode_Colors.py"
chmod +x "$iterm2_scripts/AutoLaunch/Auto_Dark_Mode_Colors.py"
fi
fi