Skip to content

Commit

Permalink
feat: update theme name to strip unsupported symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
dziobaczy committed Nov 17, 2022
1 parent 78034e2 commit cc6cedb
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 cc6cedb

Please sign in to comment.