mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-22 03:43:06 +00:00
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
---
|
|
# Custom Terminal theme.
|
|
- name: Get current Terminal profile.
|
|
shell: defaults read com.apple.terminal 'Default Window Settings'
|
|
register: terminal_theme
|
|
changed_when: false
|
|
always_run: yes
|
|
|
|
- name: Ensure custom Terminal profile is added.
|
|
shell: open files/terminal/JJG-Term.terminal
|
|
changed_when: false
|
|
when: "'JJG-Term' not in terminal_theme.stdout"
|
|
|
|
# TODO: This doesn't work in Yosemite. Consider a different solution?
|
|
- name: Ensure custom Terminal profile is set as default.
|
|
shell: "{{ item }}"
|
|
with_items:
|
|
- defaults write com.apple.terminal 'Default Window Settings' -string JJG-Term
|
|
- defaults write com.apple.terminal 'Startup Window Settings' -string JJG-Term
|
|
changed_when: false
|
|
when: "'JJG-Term' not in terminal_theme.stdout"
|
|
|
|
# Sudoers configuration (enables more convenient Vagrant usage).
|
|
- name: Copy sudoers configuration into place.
|
|
copy:
|
|
src: files/etc/sudoers
|
|
dest: /etc/sudoers
|
|
mode: 0440
|
|
validate: 'visudo -cf %s'
|
|
become: yes
|
|
when: configure_sudoers
|
|
|
|
# TODO: Configure Sublime Text (see templates/sublime/*).
|