Add Sublime settings, dotfiles, and Terminal settings.

This commit is contained in:
Jeff Geerling 2014-02-13 15:39:20 -06:00
parent 3446f1d212
commit ad92f87f18
9 changed files with 203 additions and 2 deletions

View File

@ -6,12 +6,18 @@ This is very much a work in progress, and is mostly a means for me to document m
**Caveat**: This set of playbooks is not meant to be a great example of Ansible best practices. I just want to wrap my Mac's configuration in Ansible so I can quickly bring up a new development Mac without having to restore from a Time Machine backup. **Caveat**: This set of playbooks is not meant to be a great example of Ansible best practices. I just want to wrap my Mac's configuration in Ansible so I can quickly bring up a new development Mac without having to restore from a Time Machine backup.
*See also*: [Battleschool](http://spencer.gibb.us/blog/2014/02/03/introducing-battleschool), which looks like it's aiming to be a more general solution than what I've built here. (It may be a better option if you don't want to fork this repo and hack it for your own workstation...).
## Installation ## Installation
1. Clone this repository somewhere. 1. Clone this repository somewhere.
2. [Install Ansible](https://devopsu.com/guides/ansible-mac-osx.html). 2. [Install Ansible](https://devopsu.com/guides/ansible-mac-osx.html).
3. Run `ansible-playbook main.yml --ask-sudo-pass`. 3. Run `ansible-playbook main.yml --ask-sudo-pass`.
## Included Applications / Configuration
TODO: I will add a list of what's installed and configured by default here...
## Additions coming soon ## Additions coming soon
### General changes: ### General changes:
@ -25,7 +31,7 @@ This is very much a work in progress, and is mostly a means for me to document m
- [MenuMeters](http://www.ragingmenace.com/software/menumeters/) - [MenuMeters](http://www.ragingmenace.com/software/menumeters/)
- TextMate 2 - TextMate 2
- PCKeyboardHack - PCKeyboardHack
- My dotfiles - My [dotfiles](https://github.com/geerlingguy/dotfiles)
- TimeMachineEditor - TimeMachineEditor
- Skype - Skype
- etc... - etc...
@ -43,6 +49,7 @@ This is very much a work in progress, and is mostly a means for me to document m
- Disable "show warning before changing extension" - Disable "show warning before changing extension"
- Set default view to column mode - Set default view to column mode
- Show hard disks, connected servers on desktop - Show hard disks, connected servers on desktop
- Translucent dock icon when app is hidden
- etc... - etc...
### Apps only available via the App Store ### Apps only available via the App Store

View File

@ -18,4 +18,7 @@
sudo: true sudo: true
- name: Create symlink sublime for Sublime Text's subl command - name: Create symlink sublime for Sublime Text's subl command
file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/sublime state=link file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/sublime state=link
sudo: true sudo: true
# - name: "Copy settings (example, don't use)."
# shell: cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null

View File

@ -10,6 +10,8 @@
tasks: tasks:
- name: Create Ansible downloads directory - name: Create Ansible downloads directory
file: path={{ downloads }} state=directory file: path={{ downloads }} state=directory
- include: preferences/dotfiles.yml
- include: preferences/preferences.yml
- include: apps/adium.yml - include: apps/adium.yml
- include: apps/chrome.yml - include: apps/chrome.yml

28
preferences/dotfiles.yml Normal file
View File

@ -0,0 +1,28 @@
---
# Install Jeff Geerling's dotfiles.
- name: Clone dotfiles repository into temporary location.
git: >
repo=https://github.com/geerlingguy/dotfiles.git
dest=~/Dropbox/Development/GitHub/dotfiles
sudo: no
- name: Check if .bash_profile is a link.
shell: ls -F ~/.bash_profile
register: is_link
changed_when: false
- name: Remove current .bash_profile file if necessary.
file: path=~/.bash_profile state=absent
when: "'@' not in is_link.stdout"
- name: Link dotfiles into home folder.
file: src=~/Dropbox/Development/GitHub/dotfiles/{{ item }} dest=~/{{ item }} state=link
sudo: no
with_items:
- .bash_profile
- .inputrc
- .osx
- .vimrc
- name: Run .osx dotfiles.
shell: date

View File

@ -0,0 +1,8 @@
---
# Preferences.
# TODO: Idempotence, and set it as the default.
# - name: Add Terminal settings.
# shell: open templates/terminal/JJG-Term.terminal
# TODO: Make these happen.
# git config --global color.ui true

View File

@ -0,0 +1,4 @@
[
{ "keys": ["ctrl+d"], "command": "goto_drupalapi" },
{ "keys": ["ctrl+h"], "command": "goto_documentation" }
]

View File

@ -0,0 +1,20 @@
{
"auto_upgrade_last_run": null,
"installed_packages":
[
"DocBlockr",
"Drupal Snippets",
"FileDiffs",
"Git",
"GitHub Flavored Markdown Preview",
"Goto Documentation",
"Goto Drupal API",
"MarkAndMove",
"Markdown Preview",
"Package Control",
"RegReplace",
"Sass",
"TrailingSpaces",
"WordCount"
]
}

View File

@ -0,0 +1,32 @@
{
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"font_size": 12.0,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
80
],
"line_numbers": true,
"gutter": true,
"margin": 4,
"fold_buttons": true,
"fade_fold_buttons": true,
"spell_check": false,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"detect_indentation": true,
"auto_indent": true,
"smart_indent": true,
"trim_automatic_white_space": false,
"auto_match_enabled": true,
"draw_minimap_border": false,
"highlight_line": true,
"match_brackets": true,
"match_selection": true,
"draw_white_space": "selection",
"trim_trailing_white_space_on_save": false,
"ensure_newline_at_eof_on_save": false
}

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECow
LjA3OTMzNTA4ODMyIDAuMDc5MzM1MDg4MzIgMC4wNzkzMzUwODgzMgAQAYAC0hAREhNa
JGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFy
Y2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhOW2KPkZOYo6y0t8DS1doAAAAAAAABAQAA
AAAAAAAZAAAAAAAAAAAAAAAAAAAA3A==
</data>
<key>BackgroundAlphaInactive</key>
<real>0.73865855823863635</real>
<key>BackgroundBlur</key>
<real>0.0</real>
<key>BackgroundBlurInactive</key>
<real>0.50397283380681823</real>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEC8w
LjA3ODcxOTQyOTM1IDAuMDc4NzE5NDI5MzUgMC4wNzg3MTk0MjkzNSAwLjkyABABgALS
EBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tl
eWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYpSWmJ2osbm8xdfa3wAAAAAA
AAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADh
</data>
<key>BackgroundSettingsForInactiveWindows</key>
<false/>
<key>CursorColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0sw
LjMwMjQxOTM2ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZHBy
dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
</data>
<key>Font</key>
<data>
YnBsaXN0MDDUAQIDBAUGGBlYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKQHCBESVSRudWxs1AkKCwwNDg8QVk5TU2l6ZVhOU2ZGbGFnc1ZOU05hbWVWJGNs
YXNzI0AsAAAAAAAAEBCAAoADWENvbnNvbGFz0hMUFRZaJGNsYXNzbmFtZVgkY2xhc3Nl
c1ZOU0ZvbnSiFRdYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRGhtUcm9vdIABCBEa
Iy0yNzxCS1JbYmlydHZ4gYaRmqGkrb/CxwAAAAAAAAEBAAAAAAAAABwAAAAAAAAAAAAA
AAAAAADJ
</data>
<key>FontAntialias</key>
<true/>
<key>FontWidthSpacing</key>
<real>0.99596774193548387</real>
<key>Linewrap</key>
<true/>
<key>ProfileCurrentVersion</key>
<real>2.02</real>
<key>SelectionColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0sw
LjI1NDAzMjI1ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZHBy
dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
</data>
<key>ShowWindowSettingsNameInTitle</key>
<false/>
<key>TerminalType</key>
<string>xterm-color</string>
<key>TextBoldColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0Ix
ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3Rf
EA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZGdpa3B7hIyPmKqt
sgAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC0
</data>
<key>TextColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0sw
Ljk0NzU4MDY0ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZHBy
dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
</data>
<key>UseBrightBold</key>
<false/>
<key>columnCount</key>
<integer>120</integer>
<key>name</key>
<string>JJG-Term</string>
<key>rowCount</key>
<integer>30</integer>
<key>shellExitAction</key>
<integer>1</integer>
<key>type</key>
<string>Window Settings</string>
</dict>
</plist>