Skip to content

Commit

Permalink
Merge pull request #14 from dziobaczy/feature/update-install-script
Browse files Browse the repository at this point in the history
Update install script
  • Loading branch information
hdoria authored Nov 17, 2022
2 parents 78034e2 + cc6cedb commit b23c38f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env bash

mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
cp *.dvtcolortheme ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
declare installPath=~/Library/Developer/Xcode/UserData/FontAndColorThemes/

echo "Adding themes to $installPath 🏗️"

mkdir -p $installPath
for theme in *.dvtcolortheme; do
xcodeThemeName=$(echo $theme | sed 's/\%//g')
cp -ir "$theme" "$installPath$xcodeThemeName"
done

themesCount=$(find . -name "*.dvtcolortheme" | wc -l)
echo "Added ${themesCount} themes ✅"

0 comments on commit b23c38f

Please sign in to comment.