dotfiles/setup/sublime-settings.sh

17 lines
403 B
Bash
Raw Normal View History

2012-10-16 12:17:12 +00:00
#!/bin/bash
2012-10-23 08:47:00 +00:00
2012-10-16 12:11:28 +00:00
# Enables Sublime settings syncronization
2012-10-23 08:47:00 +00:00
2012-10-16 12:11:28 +00:00
if [ `uname` == 'Darwin' ]; then
2012-10-23 08:47:00 +00:00
DIR=~/Library/Application\ Support/Sublime\ Text\ 2
2012-10-16 12:11:28 +00:00
else
2012-10-23 08:47:00 +00:00
DIR=~/AppData/Roaming/Sublime\ Text\ 2
2012-10-16 12:11:28 +00:00
fi
2012-10-23 08:47:00 +00:00
[ ! -d "$DIR" ] && mkdir -p "$DIR/Packages"
if [ -d "$DIR/Packages/User" ]; then
mkdir "$DIR/Packages.bak"
mv "$DIR/Packages/User" "$DIR/Packages.bak/User"
fi
ln -s ~/dotfiles/sublime/User "$DIR/Packages/User"