Skip to content

Commit

Permalink
additional cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gtritchie committed Apr 23, 2021
1 parent 2171c9f commit 4d0a3f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/clean-rstudio
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rm -f ~/.Rhistory

# global options
rm -rf ~/.config/rstudio
rm -rf ~/.config/RStudio
rm -rf ~/.r/rstudio

# settings and session state
Expand All @@ -30,13 +31,13 @@ rm -f ~/.r/crash-handler-permission
rm -f ~/.r/crash-handler.conf

if [ "${PLATFORM}" = "Darwin" ]; then
# Mac session state
rm -rf ~/Library/Application\ Support/RStudio

# macOS desktop settings
defaults delete com.rstudio.desktop > /dev/null 2>&1 || true
defaults delete com.RStudio.desktop > /dev/null 2>&1 || true
defaults delete org.rstudio.RStudio > /dev/null 2>&1 || true
else
# Linux desktop settings
rm -rf ~/.config/RStudio
fi

echo Done cleaning RStudio settings and state

0 comments on commit 4d0a3f1

Please sign in to comment.