Skip to content

Commit

Permalink
builde idea properties
Browse files Browse the repository at this point in the history
  • Loading branch information
prontera committed Nov 17, 2017
1 parent 11b0f61 commit d6ec6b8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions idea-pros-path.sh → build-idea-proerties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@
set -eo pipefail
shopt -s nullglob

idea_pros_path=$HOME/.idea.properties
idea_pros_path=$HOME/idea.properties

if [[ -e $HOME/.zshrc ]]; then
if ! grep -q IDEA_PROPERTIES "$HOME/.zshrc"; then
echo -e write it to zshrc
echo write it to zshrc
echo "export IDEA_PROPERTIES=${idea_pros_path}" >> $HOME/.zshrc
touch ${idea_pros_path}
echo 'idea.config.path=${user.home}/Public/Nutstore/config/mac/IntelliJIdea2016.3/config' >> ${idea_pros_path}
echo 'idea.system.path=${user.home}/Public/Nutstore/config/mac/IntelliJIdea2016.3/system' >> ${idea_pros_path}
echo 'idea.plugins.path=${user.home}/Public/Nutstore/config/mac/IntelliJIdea2016.3/plugins' >> ${idea_pros_path}
fi
fi
if [[ -e $HOME/.bashrc ]];then
if ! grep -q IDEA_PROPERTIES "$HOME/.bashrc"; then
echo -e write it to bashrc
echo write it to bashrc
echo "export IDEA_PROPERTIES=${idea_pros_path}" >> $HOME/.bashrc
touch ${idea_pros_path}
fi
fi

Expand Down

0 comments on commit d6ec6b8

Please sign in to comment.