-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·26 lines (20 loc) · 784 Bytes
/
install.sh
File metadata and controls
executable file
·26 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
# Installs thoughtbot's IntelliJ configs into your user configs.
echo "Installing thoughtbot IntelliJ configs..."
CONFIGS=$(dirname "${BASH_SOURCE[0]}")/configs
for directory in "$HOME"/Library/Preferences/IntelliJIdea* \
"$HOME"/Library/Preferences/IdeaIC* \
"$HOME"/Library/Preferences/AndroidStudio* \
"$HOME"/.IntelliJIdea*/config \
"$HOME"/.IdeaIC*/config \
"$HOME"/.AndroidStudio*/config
do
if [[ -d "$directory" ]]; then
# Install codestyles
mkdir -p "$directory/codestyles"
cp -frv "$CONFIGS/codestyles"/* "$directory/codestyles"
fi
done
echo "Done."
echo
echo "Restart IntelliJ or AndroidStudio, go to preferences, and apply 'thoughtbotAndroid'."