Permalink
Browse files

Added Sublime Text 2 settings. Created a setup file based off of holm…

…an's.
  • Loading branch information...
dflems committed Jan 12, 2013
1 parent bd2c5df commit 198a122a0656be764f8454742c788c1ba86b817e
View
@@ -0,0 +1,3 @@
+sublime2/User/Package\ Control.sublime-settings
+sublime2/User/Package\ Control.last-run
+.DS_Store
View
@@ -23,4 +23,4 @@ script/bootstrap
* [garybernhardt/dotfiles](https://github.com/garybernhardt/dotfiles): Git scripts and gitconfig. Great stuff. A+ would recommend.
## todo
-* Sublime Text 2 settings
+* Lots.
View
@@ -34,8 +34,11 @@ task :install do
end
end
-task :uninstall do
+task :sublime2 do
+ exec("sublime2/setup")
+end
+task :uninstall do
Dir.glob('**/*.symlink').each do |linkable|
file = linkable.split('/').last.split('.symlink').last
@@ -0,0 +1,16 @@
+// Settings in here override those in "Default/Base File.sublime-settings", and
+// are overridden in turn by file type specific settings. Place your settings
+// here, to ensure they're preserved when upgrading.
+{
+ "vintage_start_in_command_mode": true,
+ "tab_size": 2,
+ "translate_tabs_to_spaces": true,
+ "drawWhiteSpace": true,
+ "matchBracketsAngle": true,
+ "matchBracketsBraces": true,
+ "matchBracketsSquare": true,
+ "rulers": [ 80 ],
+ "show_minimap": false,
+ "trim_trailing_white_space_on_save": true,
+ "highlight_modified_tabs": true
+}
@@ -0,0 +1,2 @@
+[
+]
@@ -0,0 +1,2 @@
+[
+]
@@ -0,0 +1,2 @@
+[
+]
@@ -0,0 +1,5 @@
+// Place user-specific overrides in this file, to ensure they're preserved
+// when upgrading
+{
+ "theme": "Soda Dark.sublime-theme"
+}
@@ -0,0 +1,5 @@
+{
+ "color_scheme": "Packages/Tomorrow/Tomorrow-Night.tmTheme",
+ "font_size": 12.0,
+ "theme": "Soda Dark.sublime-theme"
+}
@@ -0,0 +1,10 @@
+{
+ "extensions":
+ [
+ "podspec",
+ "ru",
+ "Guardfile"
+ ],
+ "tab_size": 2,
+ "translate_tabs_to_spaces": true
+}
View
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Initial setup for Sublime Text 2
+
+echo "Setting up Sublime Text 2..."
+
+PID=`ps x | grep "Sublime Text 2.app" | grep -v "grep" | awk '{print $1}'`
+if [ ! -z "$PID" ]; then
+ echo "! Please close Sublime Text 2 before running this script."
+ exit 1
+fi
+
+# Symlink
+SUBL_PACKAGE_DIR=~/Library/Application\ Support/Sublime\ Text\ 2/Packages
+if [ ! -L "$SUBL_PACKAGE_DIR/User" ]; then
+ SUBL_USER_BACKUP="$SUBL_PACKAGE_DIR/User_$(date +%s).backup"
+ mv "$SUBL_PACKAGE_DIR/User" "$SUBL_USER_BACKUP"
+ echo "* Current user prefs backed up to $SUBL_USER_BACKUP"
+fi
+
+echo "* Symlinking \"$ZSH/sublime2/User\" to \"$SUBL_PACKAGE_DIR/User\""
+rm -rf "$SUBL_PACKAGE_DIR/User"
+ln -s "$ZSH/sublime2/User" "$SUBL_PACKAGE_DIR"
+
+# Install the Soda theme
+echo "* Installing \"Soda\" theme"
+cd "$SUBL_PACKAGE_DIR"
+rm -rf "Theme - Soda"
+git clone --quiet https://github.com/buymeasoda/soda-theme/ "Theme - Soda"
+
+# Install tomorrow color theme
+echo "* Installing \"Tomorrow Night\" color theme"
+rm -rf "Tomorrow"
+mkdir "Tomorrow"
+curl --silent --output Tomorrow/Tomorrow-Night.tmTheme https://raw.github.com/chriskempson/tomorrow-theme/master/textmate/Tomorrow-Night.tmTheme

0 comments on commit 198a122

Please sign in to comment.