Skip to content

Commit edfc51e

Browse files
author
Peter Evjan
committed
IntelliJ 2020 support
The same config files work for IntelliJ 2020, but the location has changed so added that directory. Also quoting the variable derefences since the new path contains a space and it doesn't work without it
1 parent a1a7dac commit edfc51e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs"
88
for i in $HOME/Library/Preferences/IntelliJIdea* \
99
$HOME/Library/Preferences/IdeaIC* \
1010
$HOME/Library/Preferences/AndroidStudio* \
11+
$HOME/Library/Application\ Support/JetBrains/IntelliJIdea* \
1112
$HOME/.IntelliJIdea*/config \
1213
$HOME/.IdeaIC*/config \
1314
$HOME/.AndroidStudio*/config
1415
do
15-
if [[ -d $i ]]; then
16-
16+
if [[ -d "$i" ]]; then
1717
# Install codestyles
18-
mkdir -p $i/codestyles
19-
cp -frv "$CONFIGS/codestyles"/* $i/codestyles
18+
mkdir -p "$i/codestyles"
19+
cp -frv "$CONFIGS/codestyles"/* "$i/codestyles"
2020

2121
# Install inspections
22-
mkdir -p $i/inspection
23-
cp -frv "$CONFIGS/inspection"/* $i/inspection
22+
mkdir -p "$i/inspection"
23+
cp -frv "$CONFIGS/inspection"/* "$i/inspection"
2424

2525
# Install options ("Exclude from Import and Completion")
26-
mkdir -p $i/options
27-
cp -frv "$CONFIGS/options"/* $i/options
26+
mkdir -p "$i/options"
27+
cp -frv "$CONFIGS/options"/* "$i/options"
2828
fi
2929
done
3030

0 commit comments

Comments
 (0)